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