1 | <?php |
||
9 | class SmscRuChannel |
||
10 | { |
||
11 | /** @var \NotificationChannels\SmscRu\SmscRuApi */ |
||
12 | protected $smsc; |
||
13 | |||
14 | public function __construct(SmscRuApi $smsc) |
||
18 | |||
19 | /** |
||
20 | * Send the given notification. |
||
21 | * |
||
22 | * @param mixed $notifiable |
||
23 | * @param Notification $notification |
||
24 | * |
||
25 | * @return void |
||
26 | */ |
||
27 | public function send($notifiable, Notification $notification) |
||
41 | |||
42 | /** |
||
43 | * Gets a list of phones from the given notifiable. |
||
44 | * |
||
45 | * @param mixed $notifiable |
||
46 | * @param Notification $notification |
||
47 | * |
||
48 | * @return string[] |
||
49 | */ |
||
50 | protected function getRecipients($notifiable, Notification $notification) |
||
60 | |||
61 | protected function sendMessage($recipients, SmscRuMessage $message) |
||
79 | } |
||
80 |