1 | <?php |
||
11 | class TwilioChannel |
||
12 | { |
||
13 | /** |
||
14 | * @var Twilio |
||
15 | */ |
||
16 | protected $twilio; |
||
17 | |||
18 | /** |
||
19 | * @var Dispatcher |
||
20 | */ |
||
21 | protected $events; |
||
22 | |||
23 | /** |
||
24 | * TwilioChannel constructor. |
||
25 | * |
||
26 | * @param Twilio $twilio |
||
27 | * @param Dispatcher $events |
||
28 | */ |
||
29 | 7 | public function __construct(Twilio $twilio, Dispatcher $events) |
|
34 | |||
35 | /** |
||
36 | * Send the given notification. |
||
37 | * |
||
38 | * @param mixed $notifiable |
||
39 | * @param \Illuminate\Notifications\Notification $notification |
||
40 | * @return mixed |
||
41 | * @throws CouldNotSendNotification |
||
42 | */ |
||
43 | 7 | public function send($notifiable, Notification $notification) |
|
65 | |||
66 | 7 | protected function getTo($notifiable) |
|
77 | } |
||
78 |