1 | <?php |
||
7 | class SipgateMessage implements Arrayable |
||
8 | { |
||
9 | /** @var string */ |
||
10 | protected $message; |
||
11 | |||
12 | /** @var string */ |
||
13 | protected $recipient; |
||
14 | |||
15 | /** @var string */ |
||
16 | protected $smsId; |
||
17 | |||
18 | /** @var int */ |
||
19 | protected $sendAt; |
||
20 | |||
21 | 18 | public function __construct($message = '') |
|
25 | |||
26 | 7 | public static function create($message = '') |
|
30 | |||
31 | /** |
||
32 | * @return string |
||
33 | */ |
||
34 | 7 | public function getSmsId() |
|
38 | |||
39 | /** |
||
40 | * @param string $smsId |
||
41 | * |
||
42 | * @return SipgateMessage |
||
43 | */ |
||
44 | 10 | public function smsId(string $smsId) |
|
50 | |||
51 | /** |
||
52 | * @return string |
||
53 | */ |
||
54 | 3 | public function getMessage() |
|
58 | |||
59 | /** |
||
60 | * @param string $message |
||
61 | * @return SipgateMessage |
||
62 | */ |
||
63 | 4 | public function message(string $message) |
|
69 | |||
70 | /** |
||
71 | * @return string |
||
72 | */ |
||
73 | 8 | public function getRecipient() |
|
77 | |||
78 | /** |
||
79 | * @param string $recipient |
||
80 | * @return SipgateMessage |
||
81 | */ |
||
82 | 10 | public function recipient(string $recipient) |
|
88 | |||
89 | /** |
||
90 | * @return int | null |
||
91 | */ |
||
92 | 1 | public function getSendAt() |
|
96 | |||
97 | /** |
||
98 | * @param int $sendAt |
||
99 | * @return SipgateMessage |
||
100 | */ |
||
101 | 4 | public function sendAt($sendAt) |
|
107 | |||
108 | 3 | public function toArray() |
|
117 | } |
||
118 |