1 | <?php |
||
5 | class PlivoMessage |
||
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 $from; |
||
20 | |||
21 | /** |
||
22 | * Create a new message instance. |
||
23 | * |
||
24 | * @param string $content |
||
25 | * |
||
26 | * @return static |
||
27 | */ |
||
28 | public static function create($content = '') |
||
32 | |||
33 | /** |
||
34 | * Create a new message instance. |
||
35 | * |
||
36 | * @param string $content |
||
37 | */ |
||
38 | 3 | public function __construct($content = '') |
|
42 | |||
43 | /** |
||
44 | * Set the message content. |
||
45 | * |
||
46 | * @param string $content |
||
47 | * |
||
48 | * @return $this |
||
49 | */ |
||
50 | 1 | public function content($content) |
|
56 | |||
57 | /** |
||
58 | * Set the phone number the message should be sent from. |
||
59 | * |
||
60 | * @param string $from |
||
61 | * |
||
62 | * @return $this |
||
63 | */ |
||
64 | 1 | public function from($from) |
|
70 | } |
||
71 |