1 | <?php |
||
16 | class FcmChannel |
||
17 | { |
||
18 | const MAX_TOKEN_PER_REQUEST = 500; |
||
19 | |||
20 | /** |
||
21 | * @var \Illuminate\Contracts\Events\Dispatcher |
||
22 | */ |
||
23 | protected $events; |
||
24 | |||
25 | /** |
||
26 | * FcmChannel constructor. |
||
27 | * |
||
28 | * @param \Illuminate\Contracts\Events\Dispatcher $dispatcher |
||
29 | */ |
||
30 | public function __construct(Dispatcher $dispatcher) |
||
34 | |||
35 | /** |
||
36 | * @var string|null |
||
37 | */ |
||
38 | protected $fcmProject = null; |
||
39 | |||
40 | /** |
||
41 | * Send the given notification. |
||
42 | * |
||
43 | * @param mixed $notifiable |
||
44 | * @param \Illuminate\Notifications\Notification $notification |
||
45 | * |
||
46 | * @return array |
||
47 | * @throws \NotificationChannels\Fcm\Exceptions\CouldNotSendNotification |
||
48 | * @throws \Kreait\Firebase\Exception\FirebaseException |
||
49 | */ |
||
50 | public function send($notifiable, Notification $notification) |
||
104 | |||
105 | /** |
||
106 | * @return \Kreait\Firebase\Messaging |
||
107 | */ |
||
108 | protected function messaging() |
||
120 | |||
121 | /** |
||
122 | * @param \Kreait\Firebase\Messaging\Message $fcmMessage |
||
123 | * @return array |
||
124 | * @throws \Kreait\Firebase\Exception\MessagingException |
||
125 | * @throws \Kreait\Firebase\Exception\FirebaseException |
||
126 | */ |
||
127 | protected function sendToFcm(Message $fcmMessage) |
||
131 | |||
132 | /** |
||
133 | * @param $fcmMessage |
||
134 | * @param array $tokens |
||
135 | * @return \Kreait\Firebase\Messaging\MulticastSendReport |
||
136 | * @throws \Kreait\Firebase\Exception\MessagingException |
||
137 | * @throws \Kreait\Firebase\Exception\FirebaseException |
||
138 | */ |
||
139 | protected function sendToFcmMulticast($fcmMessage, array $tokens) |
||
143 | |||
144 | /** |
||
145 | * Dispatch failed event. |
||
146 | * |
||
147 | * @param mixed $notifiable |
||
148 | * @param \Illuminate\Notifications\Notification $notification |
||
149 | * @param \Throwable $exception |
||
150 | * @return array|null |
||
151 | */ |
||
152 | protected function failedNotification($notifiable, Notification $notification, Throwable $exception) |
||
164 | } |
||
165 |
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.