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 Notifications
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 * Message
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 VoiceMessage implements Message
42 {
43
44 private $_senderNumber;
45
46 private $_receipentNumber;
47
48 private $_message;
49
50 private $_id;
51
52
53 /**
54 * __construct
55 *
56 * @access public
57 * @return void
58 */
59 public function __construct()
60 {
61 $this->_id = uniqid('vm');
62
63 }//end __construct()
64
65
66 public function getID() {
67 return $this->_id;
68 }
69
70 public function setSubject($subject) {
71 throw new Exception("Function not supported");
72 }
73
74 public function getSubject() {
75 throw new Exception("Function not supported");
76 }
77
78 public function getBody() {
79 return $this->_message;
80 }
81
82 public function setBody($body) {
83 $this->_message = $body;
84 }
85
86 public function setFrom($senderNumber) {
87 $this->_senderNumber = $senderNumber;
88 }
89
90 public function getFrom() {
91 return $this->_senderNumber;
92 }
93
94 public function setRecipients($recipients) {
95 $this->_receipentNumber = $recipients;
96 }
97
98 public function getRecipients() {
99 return $this->_receipentNumber;
100 }
101 }
102