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 | 3 | 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 | 3 | public function send($notifiable, Notification $notification) |
|
62 | |||
63 | /** |
||
64 | * @param array|bool $response |
||
65 | * @param \Illuminate\Database\Eloquent\Collection $subscriptions |
||
66 | * @return void |
||
67 | */ |
||
68 | 3 | protected function deleteInvalidSubscriptions($response, $subscriptions) |
|
80 | } |
||
81 |
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.