1 | <?php |
||
15 | class FcmChannel |
||
16 | { |
||
17 | const MAX_TOKEN_PER_REQUEST = 500; |
||
18 | |||
19 | /** |
||
20 | * @var \Illuminate\Contracts\Events\Dispatcher |
||
21 | */ |
||
22 | protected $events; |
||
23 | |||
24 | /** |
||
25 | * FcmChannel constructor. |
||
26 | * |
||
27 | * @param \Illuminate\Contracts\Events\Dispatcher $dispatcher |
||
28 | */ |
||
29 | public function __construct(Dispatcher $dispatcher) |
||
33 | |||
34 | /** |
||
35 | * @var string|null |
||
36 | */ |
||
37 | protected $fcmProject = null; |
||
38 | |||
39 | /** |
||
40 | * Send the given notification. |
||
41 | * |
||
42 | * @param mixed $notifiable |
||
43 | * @param \Illuminate\Notifications\Notification $notification |
||
44 | * |
||
45 | * @return array |
||
46 | * @throws \NotificationChannels\Fcm\Exceptions\CouldNotSendNotification |
||
47 | * @throws \Kreait\Firebase\Exception\FirebaseException |
||
48 | */ |
||
49 | public function send($notifiable, Notification $notification) |
||
84 | |||
85 | /** |
||
86 | * @param $notifiable |
||
87 | * |
||
88 | * @return mixed |
||
89 | * @throws CouldNotSendNotification |
||
90 | */ |
||
91 | protected function getToken($notifiable) |
||
107 | |||
108 | /** |
||
109 | * @return \Kreait\Firebase\Messaging |
||
110 | */ |
||
111 | protected function messaging() |
||
121 | |||
122 | /** |
||
123 | * @param \Kreait\Firebase\Messaging\Message $fcmMessage |
||
124 | * @param $token |
||
125 | * @return array |
||
126 | * @throws \Kreait\Firebase\Exception\MessagingException |
||
127 | * @throws \Kreait\Firebase\Exception\FirebaseException |
||
128 | */ |
||
129 | protected function sendToFcm(Message $fcmMessage, $token) |
||
141 | |||
142 | /** |
||
143 | * @param $fcmMessage |
||
144 | * @param array $tokens |
||
145 | * @return \Kreait\Firebase\Messaging\MulticastSendReport |
||
146 | * @throws \Kreait\Firebase\Exception\MessagingException |
||
147 | * @throws \Kreait\Firebase\Exception\FirebaseException |
||
148 | */ |
||
149 | protected function sendToFcmMulticast($fcmMessage, array $tokens) |
||
153 | |||
154 | /** |
||
155 | * Dispatch failed event. |
||
156 | * |
||
157 | * @param mixed $notifiable |
||
158 | * @param \Illuminate\Notifications\Notification $notification |
||
159 | * @param \Throwable $exception |
||
160 | * @return array|null |
||
161 | */ |
||
162 | protected function failedNotification($notifiable, Notification $notification, Throwable $exception) |
||
174 | } |
||
175 |
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.