| 1 | <?php |
||
| 5 | class JusibeMessage |
||
| 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 | * @param string $content |
||
| 23 | * |
||
| 24 | * @return static |
||
| 25 | */ |
||
| 26 | public static function create($content = '') |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param string $content |
||
| 33 | */ |
||
| 34 | public function __construct($content = '') |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Set the message content. |
||
| 41 | * |
||
| 42 | * @param string $content |
||
| 43 | * |
||
| 44 | * @return $this |
||
| 45 | */ |
||
| 46 | public function content($content) |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Set the phone number the message should be sent from. |
||
| 55 | * |
||
| 56 | * @param string $from |
||
| 57 | * |
||
| 58 | * @return $this |
||
| 59 | */ |
||
| 60 | public function from($from) |
||
| 66 | } |
||
| 67 |