HEAD ======= >>>>>>> release-0.2.0
1 <?php
2 /**
3 * Copyright 2012 Native5. All Rights Reserved
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * You may not use this file except in compliance with the License.
7 *
8 * Unless required by applicable law or agreed to in writing, software
9 * distributed under the License is distributed on an "AS IS" BASIS,
10 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 * See the License for the specific language governing permissions and
12 * limitations under the License.
13 * PHP version 5.3+
14 *
15 * @category <category>
16 * @package Native5\<package>
17 * @author Barada Sahu <barry@native5.com>
18 * @copyright 2012 Native5. All Rights Reserved
19 * @license See attached LICENSE for details
20 * @version GIT: $gitid$
21 * @link http://www.docs.native5.com
22 */
23
24 namespace Native5\Services\Messaging;
25
26 use Native5\Services\Messaging\Message;
27
28 /**
29 * SMSMessage
30 *
31 * @category Notifications
32 * @package Native5\Services\Messaging
33 * @author Barada Sahu <barry@native5.com>
34 * @copyright 2012 Native5. All Rights Reserved
35 * @license See attached NOTICE.md for details
36 * @version Release: 1.0
37 * @link http://www.docs.native5.com
38 * Created : 27-11-2012
39 * Last Modified : Fri Dec 21 09:11:53 2012
40 */
41 class SMSMessage implements Message
42 {
43
44 private $_senderNumber;
45
46 private $_receipentNumber;
47
48 private $_message;
49
50 private $_from;
51
52 private $_id;
53
54
55 /**
56 * __construct
57 *
58 * @access public
59 * @return void
60 */
61 public function __construct()
62 {
63 $this->_id = uniqid();
64
65 }//end __construct()
66
67
68 /**
69 * getID
70 *
71 * @access public
72 * @return void
73 */
74 public function getID() {
75 return $this->_id;
76 }
77
78 public function setSubject($subject) {
79 throw new Exception("Function not supported");
80 }
81
82 public function getSubject() {
83 throw new Exception("Function not supported");
84 }
85
86 public function getBody() {
87 return $this->_message;
88 }
89
90 public function setBody($body) {
91 $this->_message = $body;
92 }
93
94 public function setRecipients($recipients) {
95 $this->_senderNumber = $recipients;
96 }
97
98 public function getRecipients() {
99 return $this->_senderNumber;
100 }
101
102 public function setFrom($from) {
103 $this->_from = $from;
104 }
105
106 public function getFrom() {
107 return $this->_from;
108 }
109
110 }
111 ?>
112