1 | <?php |
||
14 | class Email |
||
15 | { |
||
16 | |||
17 | const STATUS_FAILED = 'FAILED'; |
||
18 | const STATUS_READY = 'READY'; |
||
19 | const STATUS_PROCESSING = 'PROCESSING'; |
||
20 | const STATUS_COMPLETE = 'COMPLETE'; |
||
21 | const STATUS_CANCELLED = 'CANCELLED'; |
||
22 | |||
23 | |||
24 | /** |
||
25 | * @var integer |
||
26 | * |
||
27 | * @ORM\Column(name="id", type="integer") |
||
28 | * @ORM\Id |
||
29 | * @ORM\GeneratedValue(strategy="AUTO") |
||
30 | */ |
||
31 | private $id; |
||
32 | |||
33 | /** |
||
34 | * @var string |
||
35 | * |
||
36 | * @ORM\Column(name="subject", type="string", length=255) |
||
37 | */ |
||
38 | private $subject; |
||
39 | |||
40 | /** |
||
41 | * @var string |
||
42 | * |
||
43 | * @ORM\Column(name="from_email", type="string", length=255) |
||
44 | */ |
||
45 | private $fromEmail; |
||
46 | |||
47 | /** |
||
48 | * @var string |
||
49 | * |
||
50 | * @ORM\Column(name="to_email", type="string", length=255, nullable=true) |
||
51 | */ |
||
52 | private $toEmail; |
||
53 | |||
54 | /** |
||
55 | * @var string |
||
56 | * |
||
57 | * @ORM\Column(name="cc_email", type="string", length=255, nullable=true) |
||
58 | */ |
||
59 | private $ccEmail; |
||
60 | |||
61 | /** |
||
62 | * @var string |
||
63 | * |
||
64 | * @ORM\Column(name="bcc_email", type="string", length=255, nullable=true) |
||
65 | */ |
||
66 | private $bccEmail; |
||
67 | |||
68 | /** |
||
69 | * @var string |
||
70 | * |
||
71 | * @ORM\Column(name="reply_to_email", type="string", length=255, nullable=true) |
||
72 | */ |
||
73 | private $replyToEmail; |
||
74 | |||
75 | /** |
||
76 | * @var string |
||
77 | * |
||
78 | * @ORM\Column(name="body", type="text") |
||
79 | */ |
||
80 | private $body; |
||
81 | |||
82 | /** |
||
83 | * @var string |
||
84 | * |
||
85 | * @ORM\Column(name="message", type="text") |
||
86 | */ |
||
87 | private $message; |
||
88 | |||
89 | /** |
||
90 | * @var string |
||
91 | * |
||
92 | * @ORM\Column(name="status", type="string", length=255) |
||
93 | */ |
||
94 | private $status; |
||
95 | |||
96 | |||
97 | /** |
||
98 | * @var string |
||
99 | * |
||
100 | * @ORM\Column(name="retries", type="integer") |
||
101 | */ |
||
102 | private $retries; |
||
103 | |||
104 | /** |
||
105 | * @var \DateTime $created |
||
106 | * |
||
107 | * @Gedmo\Timestampable(on="create") |
||
108 | * @ORM\Column(name="created_at", type="datetime", nullable=true) |
||
109 | */ |
||
110 | private $createdAt; |
||
111 | |||
112 | /** |
||
113 | * @var \DateTime $updated |
||
114 | * |
||
115 | * @Gedmo\Timestampable(on="update") |
||
116 | * @ORM\Column(name="updated_at", type="datetime", nullable=true) |
||
117 | */ |
||
118 | private $updatedAt; |
||
119 | |||
120 | /** |
||
121 | * @var string $createdBy |
||
122 | * |
||
123 | * @Gedmo\Blameable(on="create") |
||
124 | * @ORM\Column(name="created_by", type="string", nullable=true) |
||
125 | */ |
||
126 | private $createdBy; |
||
127 | |||
128 | /** |
||
129 | * @var string $updatedBy |
||
130 | * |
||
131 | * @Gedmo\Blameable(on="update") |
||
132 | * @ORM\Column(name="updated_by", type="string", nullable=true) |
||
133 | */ |
||
134 | private $updatedBy; |
||
135 | |||
136 | /** |
||
137 | * @var \DateTime $sentAt |
||
138 | * |
||
139 | * @ORM\Column(name="sent_at", type="datetime", nullable=true) |
||
140 | */ |
||
141 | private $sentAt; |
||
142 | |||
143 | |||
144 | |||
145 | /** |
||
146 | * @var \Swift_Message |
||
147 | * |
||
148 | * @ORM\Column(name="error_message", type="text", nullable=true) |
||
149 | */ |
||
150 | private $errorMessage; |
||
151 | |||
152 | |||
153 | /** |
||
154 | * Get id |
||
155 | * |
||
156 | * @return integer |
||
157 | */ |
||
158 | public function getId() |
||
162 | |||
163 | /** |
||
164 | * Set subject |
||
165 | * |
||
166 | * @param string $subject |
||
167 | * @return Email |
||
168 | */ |
||
169 | public function setSubject($subject) |
||
175 | |||
176 | /** |
||
177 | * Get subject |
||
178 | * |
||
179 | * @return string |
||
180 | */ |
||
181 | public function getSubject() |
||
185 | |||
186 | /** |
||
187 | * Set fromEmail |
||
188 | * |
||
189 | * @param string $fromEmail |
||
190 | * @return Email |
||
191 | */ |
||
192 | public function setFromEmail($fromEmail) |
||
198 | |||
199 | /** |
||
200 | * Get fromEmail |
||
201 | * |
||
202 | * @return string |
||
203 | */ |
||
204 | public function getFromEmail() |
||
208 | |||
209 | /** |
||
210 | * Set toEmail |
||
211 | * |
||
212 | * @param string $toEmail |
||
213 | * @return Email |
||
214 | */ |
||
215 | public function setToEmail($toEmail) |
||
221 | |||
222 | /** |
||
223 | * Get toEmail |
||
224 | * |
||
225 | * @return string |
||
226 | */ |
||
227 | public function getToEmail() |
||
231 | |||
232 | /** |
||
233 | * @return string |
||
234 | */ |
||
235 | public function getCcEmail() |
||
239 | |||
240 | /** |
||
241 | * @param string $ccEmail |
||
242 | */ |
||
243 | public function setCcEmail($ccEmail) |
||
247 | |||
248 | /** |
||
249 | * @return string |
||
250 | */ |
||
251 | public function getBccEmail() |
||
255 | |||
256 | /** |
||
257 | * @param string $bccEmail |
||
258 | */ |
||
259 | public function setBccEmail($bccEmail) |
||
263 | |||
264 | /** |
||
265 | * @return string |
||
266 | */ |
||
267 | public function getReplyToEmail() |
||
271 | |||
272 | /** |
||
273 | * @param string $replyToEmail |
||
274 | * @return Email |
||
275 | */ |
||
276 | public function setReplyToEmail($replyToEmail) |
||
281 | |||
282 | |||
283 | /** |
||
284 | * @return string |
||
285 | */ |
||
286 | public function getBody() |
||
290 | |||
291 | /** |
||
292 | * @param string $body |
||
293 | */ |
||
294 | public function setBody($body) |
||
298 | |||
299 | |||
300 | |||
301 | /** |
||
302 | * @return \Swift_Mime_Message |
||
303 | */ |
||
304 | public function getMessage() |
||
308 | |||
309 | /** |
||
310 | * @param \Swift_Mime_Message $message |
||
311 | */ |
||
312 | public function setMessage(\Swift_Mime_Message $message) |
||
316 | |||
317 | /** |
||
318 | * @return \DateTime |
||
319 | */ |
||
320 | public function getCreatedAt() |
||
324 | |||
325 | /** |
||
326 | * @param \DateTime $createdAt |
||
327 | */ |
||
328 | public function setCreatedAt($createdAt) |
||
332 | |||
333 | /** |
||
334 | * @return \DateTime |
||
335 | */ |
||
336 | public function getUpdatedAt() |
||
340 | |||
341 | /** |
||
342 | * @param \DateTime $updatedAt |
||
343 | */ |
||
344 | public function setUpdatedAt($updatedAt) |
||
348 | |||
349 | /** |
||
350 | * @return \DateTime |
||
351 | */ |
||
352 | public function getSentAt() |
||
356 | |||
357 | /** |
||
358 | * @param \DateTime $sentAt |
||
359 | */ |
||
360 | public function setSentAt($sentAt) |
||
364 | |||
365 | |||
366 | |||
367 | /** |
||
368 | * @return string |
||
369 | */ |
||
370 | public function getCreatedBy() |
||
374 | |||
375 | /** |
||
376 | * @param string $createdBy |
||
377 | */ |
||
378 | public function setCreatedBy($createdBy) |
||
382 | |||
383 | /** |
||
384 | * @return string |
||
385 | */ |
||
386 | public function getUpdatedBy() |
||
390 | |||
391 | /** |
||
392 | * @param string $updatedBy |
||
393 | */ |
||
394 | public function setUpdatedBy($updatedBy) |
||
398 | |||
399 | /** |
||
400 | * @return \Swift_Message |
||
401 | */ |
||
402 | public function getErrorMessage() |
||
406 | |||
407 | /** |
||
408 | * @param \Swift_Message $errorMessage |
||
409 | */ |
||
410 | public function setErrorMessage($errorMessage) |
||
414 | |||
415 | /** |
||
416 | * @return string |
||
417 | */ |
||
418 | public function getStatus() |
||
422 | |||
423 | /** |
||
424 | * @param string $status |
||
425 | */ |
||
426 | public function setStatus($status) |
||
430 | |||
431 | /** |
||
432 | * @return string |
||
433 | */ |
||
434 | public function getRetries() |
||
438 | |||
439 | /** |
||
440 | * @param string $retries |
||
441 | */ |
||
442 | public function setRetries($retries) |
||
446 | |||
447 | |||
448 | |||
449 | |||
450 | } |
||
451 |