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 | 7 | public function __construct(SipgateClient $client, string $smsId) |
|
25 | |||
26 | /** |
||
27 | * Send the given notification. |
||
28 | * |
||
29 | * @param mixed $notifiable |
||
30 | * @param Notification $notification |
||
31 | * |
||
32 | * @throws CouldNotSendNotification |
||
33 | */ |
||
34 | 7 | public function send($notifiable, Notification $notification) |
|
45 | |||
46 | /** |
||
47 | * @param SipgateMessage $message |
||
48 | * @param $notifiable |
||
49 | * @throws CouldNotSendNotification |
||
50 | */ |
||
51 | 7 | protected function addRecipient(SipgateMessage $message, $notifiable) |
|
65 | |||
66 | /** |
||
67 | * @param SipgateMessage $message |
||
68 | */ |
||
69 | 6 | protected function addSmsId(SipgateMessage $message) |
|
77 | } |
||
78 |