1 | <?php |
||
8 | class WebPushChannel |
||
9 | { |
||
10 | /** @var \Minishlink\WebPush\WebPush */ |
||
11 | protected $webPush; |
||
12 | |||
13 | /** |
||
14 | * @param \Minishlink\WebPush\WebPush $webPush |
||
15 | * @return void |
||
|
|||
16 | */ |
||
17 | public function __construct(WebPush $webPush) |
||
21 | |||
22 | /** |
||
23 | * Send the given notification. |
||
24 | * |
||
25 | * @param mixed $notifiable |
||
26 | * @param \Illuminate\Notifications\Notification $notification |
||
27 | * @return void |
||
28 | */ |
||
29 | public function send($notifiable, Notification $notification) |
||
52 | |||
53 | /** |
||
54 | * @param array|bool $response |
||
55 | * @param \Illuminate\Database\Eloquent\Collection $subscriptions |
||
56 | */ |
||
57 | protected function deleteInvalidSubscriptions($response, $subscriptions) |
||
69 | } |
||
70 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.