| 1 | <?php |
||
| 5 | class ZonerSmsGatewayMessage |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * The message content. |
||
| 9 | * |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | public $content; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * The phone number the message should be sent from. |
||
| 16 | * |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | public $sender; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * The phone number the message should be sent to. |
||
| 23 | * |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | public $receiver; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Create a new message instance. |
||
| 30 | * |
||
| 31 | * @param string $content |
||
| 32 | */ |
||
| 33 | 4 | public function __construct($content = '') |
|
| 37 | |||
| 38 | /** |
||
| 39 | * Set the message content. |
||
| 40 | * |
||
| 41 | * @param string $content |
||
| 42 | * @return $this |
||
| 43 | */ |
||
| 44 | 4 | public function content($content) |
|
| 50 | |||
| 51 | /** |
||
| 52 | * Set the phone number the message should be sent from. |
||
| 53 | * |
||
| 54 | * @param string $sender |
||
| 55 | * |
||
| 56 | * @return $this |
||
| 57 | */ |
||
| 58 | public function sender($sender) |
||
| 59 | { |
||
| 60 | $this->sender = $sender; |
||
| 61 | |||
| 62 | return $this; |
||
| 63 | } |
||
| 64 | |||
| 65 | /** |
||
| 66 | * Set the phone number the message should be sent to. |
||
| 67 | * |
||
| 68 | * @param string $receiver |
||
| 69 | * |
||
| 70 | * @return $this |
||
| 71 | */ |
||
| 72 | 1 | public function receiver($receiver) |
|
| 78 | } |
||
| 79 |