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