1 | <?php |
||
8 | class SipgateChannel |
||
9 | { |
||
10 | /** |
||
11 | * @var SipgateClient |
||
12 | */ |
||
13 | protected $client; |
||
14 | |||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | protected $smsId; |
||
19 | |||
20 | /** |
||
21 | * @var bool |
||
22 | */ |
||
23 | protected $channelEnabled; |
||
24 | |||
25 | 8 | public function __construct(SipgateClient $client, string $smsId, bool $channelEnabled) |
|
31 | |||
32 | /** |
||
33 | * Send the given notification. |
||
34 | * |
||
35 | * @param mixed $notifiable |
||
36 | * @param Notification $notification |
||
37 | * |
||
38 | * @throws CouldNotSendNotification |
||
39 | */ |
||
40 | 8 | public function send($notifiable, Notification $notification) |
|
55 | |||
56 | /** |
||
57 | * @param SipgateMessage $message |
||
58 | * @param $notifiable |
||
59 | * @throws CouldNotSendNotification |
||
60 | */ |
||
61 | 7 | protected function addRecipient(SipgateMessage $message, $notifiable) |
|
75 | |||
76 | /** |
||
77 | * @param SipgateMessage $message |
||
78 | */ |
||
79 | 6 | protected function addSmsId(SipgateMessage $message) |
|
87 | } |
||
88 |