1 | <?php |
||
15 | class FcmChannel |
||
16 | { |
||
17 | const MAX_TOKEN_PER_REQUEST = 500; |
||
18 | |||
19 | /** |
||
20 | * @var MessagingClient |
||
21 | */ |
||
22 | protected $client; |
||
23 | |||
24 | /*** |
||
25 | * @var Dispatcher |
||
26 | */ |
||
27 | protected $events; |
||
28 | |||
29 | /** |
||
30 | * FcmChannel constructor. |
||
31 | * |
||
32 | * @param MessagingClient $client |
||
33 | * @param Dispatcher $dispatcher |
||
34 | */ |
||
35 | public function __construct(MessagingClient $client, Dispatcher $dispatcher) |
||
40 | |||
41 | /** |
||
42 | * Send the given notification. |
||
43 | * |
||
44 | * @param mixed $notifiable |
||
45 | * @param Notification $notification |
||
46 | * |
||
47 | * @return array |
||
48 | * @throws CouldNotSendNotification|\Kreait\Firebase\Exception\FirebaseException |
||
49 | */ |
||
50 | public function send($notifiable, Notification $notification) |
||
84 | |||
85 | /** |
||
86 | * @param Message $fcmMessage |
||
87 | * @param $token |
||
88 | * @return array |
||
89 | * @throws MessagingException |
||
90 | * @throws \Kreait\Firebase\Exception\FirebaseException |
||
91 | */ |
||
92 | protected function sendToFcm(Message $fcmMessage, $token) |
||
104 | |||
105 | /** |
||
106 | * @param $fcmMessage |
||
107 | * @param array $tokens |
||
108 | * @return MessagingClient\MulticastSendReport |
||
109 | * @throws MessagingException |
||
110 | * @throws \Kreait\Firebase\Exception\FirebaseException |
||
111 | */ |
||
112 | protected function sendToFcmMulticast($fcmMessage, array $tokens) |
||
116 | |||
117 | /** |
||
118 | * Dispatch failed event. |
||
119 | * |
||
120 | * @param $notifiable |
||
121 | * @param Notification $notification |
||
122 | * @param Throwable $exception |
||
123 | * @return array|null |
||
124 | */ |
||
125 | protected function failedNotification($notifiable, Notification $notification, Throwable $exception) |
||
137 | } |
||
138 |
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.