1 | <?php |
||
11 | class TotalVoiceChannel |
||
12 | { |
||
13 | /** |
||
14 | * @var TotalVoice |
||
15 | */ |
||
16 | protected $totalvoice; |
||
17 | |||
18 | /** |
||
19 | * @var Dispatcher |
||
20 | */ |
||
21 | protected $events; |
||
22 | |||
23 | /** |
||
24 | * TotalVoiceChannel constructor. |
||
25 | * |
||
26 | * @param TotalVoice $totalvoice |
||
27 | * @param Dispatcher $events |
||
28 | */ |
||
29 | 7 | public function __construct(TotalVoice $totalvoice, Dispatcher $events) |
|
34 | |||
35 | /** |
||
36 | * Send the given notification. |
||
37 | * |
||
38 | * @param mixed $notifiable |
||
39 | * @param \Illuminate\Notifications\Notification $notification |
||
40 | * |
||
41 | * @return mixed |
||
42 | * @throws \NotificationChannels\TotalVoice\Exceptions\CouldNotSendNotification |
||
43 | */ |
||
44 | 7 | public function send($notifiable, Notification $notification) |
|
73 | |||
74 | /** |
||
75 | * Get the address to send a notification to. |
||
76 | * |
||
77 | * @param mixed $notifiable |
||
78 | * @return mixed |
||
79 | * @throws CouldNotSendNotification |
||
80 | */ |
||
81 | 7 | protected function getTo($notifiable) |
|
91 | } |
||
92 |