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) |
||
89 | |||
90 | /** |
||
91 | * @return \Kreait\Firebase\Messaging |
||
92 | */ |
||
93 | protected function messaging() |
||
105 | |||
106 | /** |
||
107 | * @param \Kreait\Firebase\Messaging\Message $fcmMessage |
||
108 | * @param $token |
||
109 | * @return array |
||
110 | * @throws \Kreait\Firebase\Exception\MessagingException |
||
111 | * @throws \Kreait\Firebase\Exception\FirebaseException |
||
112 | */ |
||
113 | protected function sendToFcm(Message $fcmMessage, $token) |
||
125 | |||
126 | /** |
||
127 | * @param $fcmMessage |
||
128 | * @param array $tokens |
||
129 | * @return \Kreait\Firebase\Messaging\MulticastSendReport |
||
130 | * @throws \Kreait\Firebase\Exception\MessagingException |
||
131 | * @throws \Kreait\Firebase\Exception\FirebaseException |
||
132 | */ |
||
133 | protected function sendToFcmMulticast($fcmMessage, array $tokens) |
||
137 | |||
138 | /** |
||
139 | * Dispatch failed event. |
||
140 | * |
||
141 | * @param mixed $notifiable |
||
142 | * @param \Illuminate\Notifications\Notification $notification |
||
143 | * @param \Throwable $exception |
||
144 | * @return array|null |
||
145 | */ |
||
146 | protected function failedNotification($notifiable, Notification $notification, Throwable $exception) |
||
158 | } |
||
159 |
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.