| 1 | <?php |
||
| 10 | class OneSignalChannel |
||
| 11 | { |
||
| 12 | /** @var OneSignalClient */ |
||
| 13 | protected $oneSignal; |
||
| 14 | |||
| 15 | 5 | public function __construct(OneSignalClient $oneSignal) |
|
| 19 | |||
| 20 | /** |
||
| 21 | * Send the given notification. |
||
| 22 | * |
||
| 23 | * @param mixed $notifiable |
||
| 24 | * @param \Illuminate\Notifications\Notification $notification |
||
| 25 | * |
||
| 26 | * @return \Psr\Http\Message\ResponseInterface |
||
| 27 | * @throws \NotificationChannels\OneSignal\Exceptions\CouldNotSendNotification |
||
| 28 | */ |
||
| 29 | 5 | public function send($notifiable, Notification $notification) |
|
| 46 | |||
| 47 | 4 | protected function payload($notifiable, $notification, $userIds) |
|
| 51 | } |
||
| 52 |