1 | <?php |
||
9 | class WebPushChannel |
||
10 | { |
||
11 | /** @var \Minishlink\WebPush\WebPush */ |
||
12 | protected $webPush; |
||
13 | |||
14 | /** |
||
15 | * @param \Minishlink\WebPush\WebPush $webPush |
||
16 | * @return void |
||
|
|||
17 | */ |
||
18 | 2 | public function __construct(WebPush $webPush) |
|
22 | |||
23 | /** |
||
24 | * Send the given notification. |
||
25 | * |
||
26 | * @param mixed $notifiable |
||
27 | * @param \Illuminate\Notifications\Notification $notification |
||
28 | * @return void |
||
29 | */ |
||
30 | 2 | public function send($notifiable, Notification $notification) |
|
55 | |||
56 | /** |
||
57 | * @param array|bool $response |
||
58 | * @param \Illuminate\Database\Eloquent\Collection $subscriptions |
||
59 | * @return void |
||
60 | */ |
||
61 | 2 | protected function deleteInvalidSubscriptions($response, $subscriptions) |
|
73 | |||
74 | 2 | protected function logErrorsInDebug($response, $subscriptions, $payload) |
|
93 | } |
||
94 |
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.