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