1 | <?php |
||
12 | class GcmChannel |
||
13 | { |
||
14 | /** |
||
15 | * The GCM client instance. |
||
16 | * |
||
17 | * @var \ZendService\Google\Gcm\Client |
||
18 | */ |
||
19 | protected $client; |
||
20 | |||
21 | /** |
||
22 | * The event dispatcher instance. |
||
23 | * |
||
24 | * @var \Illuminate\Events\Dispatcher |
||
25 | */ |
||
26 | protected $events; |
||
27 | |||
28 | /** |
||
29 | * Create a new channel instance. |
||
30 | * |
||
31 | * @param \ZendService\Google\Gcm\Client $client |
||
32 | * @param \Illuminate\Events\Dispatcher $events |
||
33 | */ |
||
34 | 1 | public function __construct(Client $client, Dispatcher $events) |
|
39 | |||
40 | /** |
||
41 | * Send the notification to Google Cloud Messaging. |
||
42 | * |
||
43 | * @param mixed $notifiable |
||
44 | * @param Notification $notification |
||
45 | * @return void |
||
46 | * @throws Exceptions\SendingFailed |
||
47 | */ |
||
48 | 1 | public function send($notifiable, Notification $notification) |
|
72 | |||
73 | /** |
||
74 | * @param $tokens |
||
75 | * @param $message |
||
76 | * @return \NotificationChannels\Gcm\Packet |
||
77 | */ |
||
78 | protected function getPacket($tokens, $message) |
||
96 | |||
97 | /** |
||
98 | * Handle a failed notification. |
||
99 | * |
||
100 | * @param mixed $notifiable |
||
101 | * @param \Illuminate\Notifications\Notification $notification |
||
102 | * @param $response |
||
103 | */ |
||
104 | protected function handleFailedNotifications($notifiable, Notification $notification, $response) |
||
121 | } |
||
122 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.