1 | <?php |
||
7 | class MailLiftMessage |
||
8 | { |
||
9 | /** @var string */ |
||
10 | protected $body; |
||
11 | |||
12 | /** @var string */ |
||
13 | protected $sender; |
||
14 | |||
15 | /** @var string|null */ |
||
16 | protected $scheduledDelivery; |
||
17 | |||
18 | /** |
||
19 | * @param string $body |
||
20 | * |
||
21 | * @return static |
||
22 | */ |
||
23 | 3 | public static function create($body) |
|
27 | |||
28 | /** |
||
29 | * @param string $body |
||
30 | */ |
||
31 | 8 | public function __construct($body) |
|
35 | |||
36 | /** |
||
37 | * Set the letter message body. |
||
38 | * |
||
39 | * @param $body |
||
40 | * |
||
41 | * @return $this |
||
42 | */ |
||
43 | 1 | public function body($body) |
|
49 | |||
50 | /** |
||
51 | * Set the letter message sender. |
||
52 | * |
||
53 | * @param $sender |
||
54 | * |
||
55 | * @return $this |
||
56 | */ |
||
57 | 3 | public function sender($sender) |
|
63 | |||
64 | /** |
||
65 | * Set the scheduled delivery date. |
||
66 | * |
||
67 | * @param string|DateTime $scheduledDelivery |
||
68 | * |
||
69 | * @return $this |
||
70 | */ |
||
71 | 2 | public function scheduleDelivery($scheduledDelivery) |
|
81 | |||
82 | /** |
||
83 | * @return array |
||
84 | */ |
||
85 | 8 | public function toArray() |
|
93 | } |
||
94 |