| 1 | <?php |
||
| 8 | class Farazsms extends Driver |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Farazsms Settings. |
||
| 12 | * |
||
| 13 | * @var null|object |
||
| 14 | */ |
||
| 15 | protected $settings; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Farazsms Client. |
||
| 19 | * |
||
| 20 | * @var null|Client |
||
| 21 | */ |
||
| 22 | protected $client; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Construct the class with the relevant settings. |
||
| 26 | * |
||
| 27 | * SendSmsInterface constructor. |
||
| 28 | * @param $settings object |
||
| 29 | */ |
||
| 30 | public function __construct($settings) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Send text message and return response. |
||
| 38 | * |
||
| 39 | * @return object |
||
| 40 | * @throws \GuzzleHttp\Exception\GuzzleException |
||
| 41 | */ |
||
| 42 | public function send() |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @param string $recipient |
||
| 60 | * @return array |
||
| 61 | */ |
||
| 62 | protected function payload($recipient) |
||
| 75 | } |
||
| 76 |