| 1 | <?php |
||
| 5 | class SmsBuilder |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var array |
||
| 9 | */ |
||
| 10 | protected $recipients = []; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $body; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | protected $driver; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Get the value of recipients |
||
| 24 | */ |
||
| 25 | public function getRecipients() |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Set the value of recipients |
||
| 32 | * |
||
| 33 | * @return self |
||
| 34 | */ |
||
| 35 | public function to($recipients) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Get the value of body |
||
| 44 | */ |
||
| 45 | public function getBody() |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Set the value of body |
||
| 52 | * |
||
| 53 | * @return self |
||
| 54 | */ |
||
| 55 | public function send($body) |
||
| 61 | |||
| 62 | /** |
||
| 63 | * Get the value of driver |
||
| 64 | */ |
||
| 65 | public function getDriver() |
||
| 69 | |||
| 70 | /** |
||
| 71 | * Set the value of driver |
||
| 72 | * |
||
| 73 | * @return self |
||
| 74 | */ |
||
| 75 | public function via($driver) |
||
| 81 | } |
||
| 82 |