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 * MailMessage
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 MailMessage implements Message
42 {
43
44 private $_subject;
45
46 private $_body;
47
48 private $_attachments;
49
50 private $_to;
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('mm');
64
65 }//end __construct()
66
67 public function getID() {
68 return $this->_id;
69 }
70
71 public function setSubject($subj) {
72 $this->_subject = $subj;
73 }
74
75 public function getSubject() {
76 return $this->_subject;
77 }
78
79 public function setBody($body) {
80 $this->_body = $body;
81 }
82
83 public function getBody() {
84 return $this->_body;
85 }
86
87 public function setRecipients ($to) {
88 $this->_to = $to;
89 }
90
91 public function getRecipients () {
92 return $this->_to;
93 }
94
95 public function setAttachments($attachments) {
96 $this->_attachments = $attachments;
97 }
98
99 public function getAttachments() {
100 return $this->_attachments;
101 }
102 }
103
104