1 | <?php |
||
5 | abstract class TwilioMessage |
||
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 message object. |
||
23 | * @param string $content |
||
24 | * @return static |
||
25 | */ |
||
26 | 8 | public static function create($content = '') |
|
30 | |||
31 | /** |
||
32 | * Create a new message instance. |
||
33 | * |
||
34 | * @param string $content |
||
35 | */ |
||
36 | 27 | public function __construct($content = '') |
|
40 | |||
41 | /** |
||
42 | * Set the message content. |
||
43 | * |
||
44 | * @param string $content |
||
45 | * @return $this |
||
46 | */ |
||
47 | 2 | public function content($content) |
|
53 | |||
54 | /** |
||
55 | * Set the phone number the message should be sent from. |
||
56 | * |
||
57 | * @param string $from |
||
58 | * @return $this |
||
59 | */ |
||
60 | 6 | public function from($from) |
|
66 | |||
67 | /** |
||
68 | * Get the from address. |
||
69 | * |
||
70 | * @return string |
||
71 | */ |
||
72 | 3 | public function getFrom() |
|
76 | } |
||
77 |