1 | <?php |
||
12 | final class SMSCMessage implements SMSCMessageInterface |
||
13 | { |
||
14 | /** |
||
15 | * The message content. |
||
16 | * |
||
17 | * @var string |
||
18 | */ |
||
19 | private $content; |
||
20 | |||
21 | /** |
||
22 | * The number to be notified. |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | private $number; |
||
27 | |||
28 | /** |
||
29 | * SMSCMessage constructor. |
||
30 | * |
||
31 | * @param string $content |
||
32 | * @param string $number |
||
33 | */ |
||
34 | public function __construct($content, $number) |
||
39 | |||
40 | /** |
||
41 | * Get the message properties as array. |
||
42 | * |
||
43 | * @return array |
||
44 | */ |
||
45 | public function toArray() |
||
52 | |||
53 | /** |
||
54 | * Convert the sms message to sms parameters. |
||
55 | * |
||
56 | * @return array |
||
57 | */ |
||
58 | public function toRequestParams() |
||
62 | |||
63 | /** |
||
64 | * Get the short message. |
||
65 | * |
||
66 | * @return string |
||
67 | */ |
||
68 | public function content() |
||
72 | |||
73 | /** |
||
74 | * Get the to number. |
||
75 | * |
||
76 | * @return string |
||
77 | */ |
||
78 | public function number() |
||
82 | |||
83 | /** |
||
84 | * Property getter. |
||
85 | * |
||
86 | * @param string $name |
||
87 | * @return mixed |
||
88 | */ |
||
89 | public function __get($name) |
||
93 | } |
||
94 |