| 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 | public function __construct($message = '') |
||
| 25 | |||
| 26 | public static function create($message = '') |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | public function getSmsId() |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @param string $smsId |
||
| 41 | * |
||
| 42 | * @return SipgateMessage |
||
| 43 | */ |
||
| 44 | public function smsId(string $smsId) |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @return string |
||
| 53 | */ |
||
| 54 | public function getMessage() |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @param string $message |
||
| 61 | * @return SipgateMessage |
||
| 62 | */ |
||
| 63 | public function message(string $message) |
||
| 69 | |||
| 70 | /** |
||
| 71 | * @return string |
||
| 72 | */ |
||
| 73 | public function getRecipient() |
||
| 77 | |||
| 78 | /** |
||
| 79 | * @param string $recipient |
||
| 80 | * @return SipgateMessage |
||
| 81 | */ |
||
| 82 | public function recipient(string $recipient) |
||
| 88 | |||
| 89 | /** |
||
| 90 | * @return int | null |
||
| 91 | */ |
||
| 92 | public function getSendAt() |
||
| 96 | |||
| 97 | /** |
||
| 98 | * @param int $sendAt |
||
| 99 | * @return SipgateMessage |
||
| 100 | */ |
||
| 101 | public function sendAt($sendAt) |
||
| 107 | |||
| 108 | public function toArray() |
||
| 117 | } |
||
| 118 |