1 | <?php |
||
17 | class Email |
||
18 | { |
||
19 | /** |
||
20 | * @var string The name as defined for the email message properties. |
||
21 | */ |
||
22 | private $name; |
||
23 | |||
24 | /** |
||
25 | * @var integer The ID of the folder in which the email is stored. |
||
26 | */ |
||
27 | private $folderId; |
||
28 | |||
29 | /** |
||
30 | * @var integer The Brand used for sending out the email message. |
||
31 | */ |
||
32 | private $mailDomainId; |
||
33 | |||
34 | /** |
||
35 | * @var boolean This indicates if the list unsubscribe option has been activated for the email message. |
||
36 | */ |
||
37 | private $unsubscribe; |
||
38 | |||
39 | /** |
||
40 | * @var integer The queue to which the email messages are transferred for broadcast. |
||
41 | */ |
||
42 | private $queueId; |
||
43 | |||
44 | /** |
||
45 | * @var string |
||
46 | */ |
||
47 | private $tag; |
||
48 | |||
49 | /** |
||
50 | * @var string The category attributed to the email message. |
||
51 | */ |
||
52 | private $maCategory; |
||
53 | |||
54 | /** |
||
55 | * @var Target |
||
56 | */ |
||
57 | private $target; |
||
58 | |||
59 | /** |
||
60 | * @var array |
||
61 | */ |
||
62 | private $content; |
||
63 | |||
64 | /** |
||
65 | * @param string $name The name as defined for the email message properties. |
||
66 | * @return self |
||
67 | */ |
||
68 | 1 | public function setName($name) |
|
74 | |||
75 | /** |
||
76 | * @return string The name as defined for the email message properties. |
||
77 | */ |
||
78 | 1 | public function getName() |
|
82 | |||
83 | /** |
||
84 | * @param integer $folderId The ID of the folder in which the email is stored |
||
85 | * @return self |
||
86 | */ |
||
87 | 1 | public function setFolderId($folderId) |
|
93 | |||
94 | /** |
||
95 | * @return integer The ID of the folder in which the email is stored |
||
96 | */ |
||
97 | 1 | public function getFolderId() |
|
101 | |||
102 | /** |
||
103 | * @param boolean This indicates if the list unsubscribe option has been activated for the email message. |
||
104 | * @return self |
||
105 | */ |
||
106 | 1 | public function listUnsubscribe($unsubscribe = true) |
|
112 | |||
113 | /** |
||
114 | * @return boolean Indicates if the list unsubscribe option has been activated for the email message. |
||
115 | */ |
||
116 | 1 | public function canUnsubscribe() |
|
120 | |||
121 | /** |
||
122 | * @param integer The queue to which the email messages are transferred for broadcast. |
||
123 | * @return self |
||
124 | */ |
||
125 | 1 | public function setQueueId($queueId) |
|
131 | |||
132 | /** |
||
133 | * @return integer The queue to which the email messages are transferred for broadcast. |
||
134 | */ |
||
135 | 1 | public function getQueueId() |
|
139 | |||
140 | /** |
||
141 | * @param integer The Brand used for sending out the email message. |
||
142 | * @return self |
||
143 | */ |
||
144 | 1 | public function setMailDomainId($mailDomainId) |
|
150 | |||
151 | /** |
||
152 | * @return integer The Brand used for sending out the email message. |
||
153 | */ |
||
154 | 1 | public function getMailDomainId() |
|
158 | |||
159 | /** |
||
160 | * @param string $tag |
||
161 | * @return self |
||
162 | */ |
||
163 | 1 | public function setTag($tag) |
|
169 | |||
170 | /** |
||
171 | * @return string |
||
172 | */ |
||
173 | 1 | public function getTag() |
|
177 | |||
178 | /** |
||
179 | * @param string The category attributed to the email message. |
||
180 | * @return self |
||
181 | */ |
||
182 | 1 | public function setMaCategory($maCategory) |
|
188 | |||
189 | /** |
||
190 | * @return string |
||
191 | */ |
||
192 | 1 | public function getMaCategory() |
|
196 | |||
197 | /** |
||
198 | * @param Target $target |
||
199 | * @return self |
||
200 | */ |
||
201 | 1 | public function setTarget($target) |
|
207 | |||
208 | /** |
||
209 | * @return Target |
||
210 | */ |
||
211 | 1 | public function getTarget() |
|
215 | |||
216 | /** |
||
217 | * |
||
218 | * With the folling key/values : |
||
219 | * |
||
220 | * - HTML: The complete HTML version of the email message |
||
221 | * - TEXT: The complete text version of the email message |
||
222 | * - FROM_ADDR: The From address used for the email |
||
223 | * - FROM_NAME: The From name used in the email |
||
224 | * - TO_ADDR: The recipients email address. This is always like following: ~Mail~ |
||
225 | * - TO_NAME: The recipient’s name. This is always like following: ~Name~ |
||
226 | * - REPLY_ADDR: The ‘reply to’ address |
||
227 | * - REPLY_NAME: The ‘reply to’ name |
||
228 | * - SUBJECT: The subject line of the email message |
||
229 | * |
||
230 | * @param Array |
||
231 | * @return self |
||
232 | */ |
||
233 | 1 | public function setContent($content) |
|
239 | |||
240 | /** |
||
241 | * @return Array |
||
242 | */ |
||
243 | 1 | public function getContent() |
|
247 | } |
||
248 |