1 | <?php |
||
12 | class EmailSendReceive |
||
13 | { |
||
14 | const STATUS_CREATED = 'created'; |
||
15 | const STATUS_SANDED = 'sanded'; |
||
16 | const STATUS_SAND_ERROR = 'sand_error'; |
||
17 | const STATUS_RECEIVED = 'received'; |
||
18 | const STATUS_RECEIVED_ERROR = 'receive_error'; |
||
19 | const STATUS_EXPIRED = 'expired'; |
||
20 | |||
21 | /** |
||
22 | * @var DateTimeInterface |
||
23 | */ |
||
24 | private $sentAt; |
||
25 | |||
26 | /** |
||
27 | * @var DateTimeInterface |
||
28 | */ |
||
29 | private $receivedAt; |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | */ |
||
34 | private $subject; |
||
35 | |||
36 | /** |
||
37 | * @var string |
||
38 | */ |
||
39 | private $body; |
||
40 | |||
41 | /** |
||
42 | * @var string |
||
43 | */ |
||
44 | private $from; |
||
45 | |||
46 | /** |
||
47 | * @var string |
||
48 | */ |
||
49 | private $to; |
||
50 | |||
51 | /** |
||
52 | * @var string |
||
53 | */ |
||
54 | private $status = self::STATUS_CREATED; |
||
55 | |||
56 | /** |
||
57 | * Set sentAt |
||
58 | * |
||
59 | * @param \DateTime $sentAt |
||
60 | * |
||
61 | * @return EmailSendReceive |
||
62 | */ |
||
63 | 11 | public function setSentAt($sentAt) |
|
69 | |||
70 | /** |
||
71 | * Get sentAt |
||
72 | * |
||
73 | * @return \DateTime |
||
74 | */ |
||
75 | 9 | public function getSentAt() |
|
79 | |||
80 | /** |
||
81 | * Set receivedAt |
||
82 | * |
||
83 | * @param \DateTime $receivedAt |
||
84 | * |
||
85 | * @return EmailSendReceive |
||
86 | */ |
||
87 | 2 | public function setReceivedAt($receivedAt) |
|
93 | |||
94 | /** |
||
95 | * Get receivedAt |
||
96 | * |
||
97 | * @return \DateTime |
||
98 | */ |
||
99 | 1 | public function getReceivedAt() |
|
103 | |||
104 | /** |
||
105 | * Set subject |
||
106 | * |
||
107 | * @param string $subject |
||
108 | * |
||
109 | * @return EmailSendReceive |
||
110 | */ |
||
111 | 6 | public function setSubject($subject) |
|
117 | |||
118 | /** |
||
119 | * Get subject |
||
120 | * |
||
121 | * @return string |
||
122 | */ |
||
123 | 10 | public function getSubject() |
|
127 | |||
128 | /** |
||
129 | * Set body |
||
130 | * |
||
131 | * @param string $body |
||
132 | * |
||
133 | * @return EmailSendReceive |
||
134 | */ |
||
135 | 6 | public function setBody($body) |
|
141 | |||
142 | /** |
||
143 | * Get body |
||
144 | * |
||
145 | * @return string |
||
146 | */ |
||
147 | 6 | public function getBody() |
|
151 | |||
152 | /** |
||
153 | * Set from |
||
154 | * |
||
155 | * @param string $from |
||
156 | * |
||
157 | * @return EmailSendReceive |
||
158 | */ |
||
159 | 6 | public function setFrom($from) |
|
165 | |||
166 | /** |
||
167 | * Get from |
||
168 | * |
||
169 | * @return string |
||
170 | */ |
||
171 | 10 | public function getFrom() |
|
175 | |||
176 | /** |
||
177 | * Set to |
||
178 | * |
||
179 | * @param string $to |
||
180 | * |
||
181 | * @return EmailSendReceive |
||
182 | */ |
||
183 | 6 | public function setTo($to) |
|
189 | |||
190 | /** |
||
191 | * Get to |
||
192 | * |
||
193 | * @return string |
||
194 | */ |
||
195 | 6 | public function getTo() |
|
199 | |||
200 | /** |
||
201 | * Set status |
||
202 | * |
||
203 | * @param string $status |
||
204 | * |
||
205 | * @return EmailSendReceive |
||
206 | */ |
||
207 | 9 | public function setStatus($status) |
|
213 | |||
214 | /** |
||
215 | * Get status |
||
216 | * |
||
217 | * @return string |
||
218 | */ |
||
219 | 7 | public function getStatus() |
|
223 | } |
||
224 |