| 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 | * Create a new message instance. |
||
| 23 | * |
||
| 24 | * @param string $content |
||
| 25 | * @return void |
||
|
|
|||
| 26 | */ |
||
| 27 | public function __construct($content = '') |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Set the message content. |
||
| 34 | * |
||
| 35 | * @param string $content |
||
| 36 | * @return $this |
||
| 37 | */ |
||
| 38 | public function content($content) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Set the phone number the message should be sent from. |
||
| 47 | * |
||
| 48 | * @param string $from |
||
| 49 | * @return $this |
||
| 50 | */ |
||
| 51 | public function from($from) |
||
| 57 | } |
||
| 58 | |||
| 59 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.