Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 4 |
| TelnyxSmsMessage | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 4 |
| from | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| content | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| 1 | <?php |
| 2 | |
| 3 | namespace AGILEDROP\LaravelTelnyx\Messages; |
| 4 | |
| 5 | class TelnyxSmsMessage extends TelnyxBaseMessage |
| 6 | { |
| 7 | /** |
| 8 | * The phone number the message should be sent from. |
| 9 | * |
| 10 | * @var string |
| 11 | */ |
| 12 | public ?string $from = NULL; |
| 13 | |
| 14 | /** |
| 15 | * The message text content. |
| 16 | * |
| 17 | * @var string |
| 18 | */ |
| 19 | public ?string $content = NULL; |
| 20 | |
| 21 | /** |
| 22 | * Set the from phone number for the sms message. |
| 23 | * |
| 24 | * @param $from |
| 25 | * |
| 26 | * @return $this |
| 27 | */ |
| 28 | public function from($from) |
| 29 | { |
| 30 | $this->from = $from; |
| 31 | |
| 32 | return $this; |
| 33 | } |
| 34 | |
| 35 | /** |
| 36 | * Set the content of the the sms message. |
| 37 | * |
| 38 | * @param string $content |
| 39 | * @return $this |
| 40 | */ |
| 41 | public function content(string $content) |
| 42 | { |
| 43 | $this->content = $content; |
| 44 | |
| 45 | return $this; |
| 46 | } |
| 47 | } |