Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 4 |
CRAP | |
0.00% |
0 / 8 |
| TelnyxBaseMessage | |
0.00% |
0 / 1 |
|
0.00% |
0 / 4 |
20 | |
0.00% |
0 / 8 |
| from | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| unicode | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| clientReference | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| usingClient | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| 1 | <?php |
| 2 | |
| 3 | namespace AGILEDROP\LaravelTelnyx\Messages; |
| 4 | |
| 5 | abstract class TelnyxBaseMessage |
| 6 | { |
| 7 | /** |
| 8 | * Set the phone number the message should be sent from. |
| 9 | * |
| 10 | * @param string $from |
| 11 | * @return $this |
| 12 | */ |
| 13 | public function from($from) |
| 14 | { |
| 15 | $this->from = $from; |
| 16 | |
| 17 | return $this; |
| 18 | } |
| 19 | |
| 20 | /** |
| 21 | * Set the message type. |
| 22 | * |
| 23 | * @return $this |
| 24 | */ |
| 25 | public function unicode() |
| 26 | { |
| 27 | $this->type = 'unicode'; |
| 28 | |
| 29 | return $this; |
| 30 | } |
| 31 | |
| 32 | /** |
| 33 | * Set the client reference (up to 40 characters). |
| 34 | * |
| 35 | * @param string $clientReference |
| 36 | * @return $this |
| 37 | */ |
| 38 | public function clientReference($clientReference) |
| 39 | { |
| 40 | $this->clientReference = $clientReference; |
| 41 | |
| 42 | return $this; |
| 43 | } |
| 44 | |
| 45 | /** |
| 46 | * Set the Telnyx client instance. |
| 47 | * |
| 48 | * @param $client |
| 49 | * |
| 50 | * @return $this |
| 51 | */ |
| 52 | public function usingClient($client) |
| 53 | { |
| 54 | $this->client = $client; |
| 55 | |
| 56 | return $this; |
| 57 | } |
| 58 | } |