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 | 11 | public function __construct($content = '') |
|
34 | { |
||
35 | 11 | $this->content = $content; |
|
36 | 11 | } |
|
37 | |||
38 | /** |
||
39 | * Set the message content. |
||
40 | * |
||
41 | * @param string $content |
||
42 | * @return $this |
||
43 | */ |
||
44 | 11 | public function content($content) |
|
45 | { |
||
46 | 11 | $this->content = $content; |
|
47 | |||
48 | 11 | return $this; |
|
49 | } |
||
50 | |||
51 | /** |
||
52 | * Set the phone number the message should be sent from. |
||
53 | * |
||
54 | * @param string $sender |
||
55 | * |
||
56 | * @return $this |
||
57 | */ |
||
58 | 1 | public function sender($sender) |
|
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 |