Conditions | 3 |
Paths | 4 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
29 | public function send($notifiable, Notification $notification) |
||
30 | { |
||
31 | $message = $notification->toNetGsm($notifiable); |
||
|
|||
32 | |||
33 | if (is_string($message)) { |
||
34 | $message = NetGsmMessage::create($message); |
||
35 | } |
||
36 | |||
37 | if ($to = $notifiable->routeNotificationFor('netgsm')) { |
||
38 | $message->setRecipients($to); |
||
39 | } |
||
40 | |||
41 | $this->client->send($message); |
||
42 | } |
||
44 |