| 1 | <?php |
||
| 7 | abstract class Driver implements DriverInterface |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * To Numbers array. |
||
| 11 | * |
||
| 12 | * @var array |
||
| 13 | */ |
||
| 14 | protected $recipients = []; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Message body. |
||
| 18 | * |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | protected $body = ''; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Driver constructor. |
||
| 25 | * |
||
| 26 | * @param $settings |
||
| 27 | */ |
||
| 28 | abstract public function __construct($settings); |
||
| 29 | |||
| 30 | /** |
||
| 31 | * String or Array of numbers. |
||
| 32 | * |
||
| 33 | * @param $numbers string|array |
||
| 34 | * @return $this |
||
| 35 | * @throws \Exception |
||
| 36 | */ |
||
| 37 | public function to($numbers) |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Set text message body. |
||
| 55 | * |
||
| 56 | * @param $message string |
||
| 57 | * @return $this |
||
| 58 | * @throws \Exception |
||
| 59 | */ |
||
| 60 | public function message($message) |
||
| 72 | |||
| 73 | /** |
||
| 74 | * Send the message |
||
| 75 | * |
||
| 76 | * @return object |
||
| 77 | */ |
||
| 78 | abstract public function send(); |
||
| 79 | } |
||
| 80 |