| 1 | <?php |
||
| 8 | class Sns extends Driver |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * SNS Settings. |
||
| 12 | * |
||
| 13 | * @var object |
||
| 14 | */ |
||
| 15 | protected $settings; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * SNS Client. |
||
| 19 | * |
||
| 20 | * @var SnsClient |
||
| 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) |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Send text message and return response. |
||
| 45 | * |
||
| 46 | * @return object |
||
| 47 | */ |
||
| 48 | public function send() |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @param string $recipient |
||
| 63 | * @return array |
||
| 64 | */ |
||
| 65 | protected function payload($recipient) |
||
| 82 | } |
||
| 83 |
This method has been deprecated.