1 | <?php |
||
9 | class PusherChannel |
||
10 | { |
||
11 | /** @var Pusher */ |
||
12 | protected $pusher; |
||
13 | |||
14 | /** |
||
15 | * @param \Pusher $pusher |
||
16 | */ |
||
17 | public function __construct(Pusher $pusher) |
||
21 | |||
22 | /** |
||
23 | * Send the given notification. |
||
24 | * |
||
25 | * @param mixed $notifiable |
||
26 | * @param \Illuminate\Notifications\Notification $notification |
||
27 | * |
||
28 | * @return void |
||
29 | * @throws \NotificationChannels\PusherPushNotifications\Exceptions\CouldNotSendNotification |
||
30 | */ |
||
31 | public function send($notifiable, Notification $notification) |
||
46 | |||
47 | /** |
||
48 | * Get the interest name for the notifiable. |
||
49 | * |
||
50 | * @param $notifiable |
||
51 | * |
||
52 | * @return string |
||
53 | */ |
||
54 | protected function interestName($notifiable) |
||
60 | } |
||
61 |
If a method or function can return multiple different values and unless you are sure that you only can receive a single value in this context, we recommend to add an additional type check:
If this a common case that PHP Analyzer should handle natively, please let us know by opening an issue.