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) |
||
88 | |||
89 | /** |
||
90 | * @return \Kreait\Firebase\Messaging |
||
91 | */ |
||
92 | protected function messaging() |
||
102 | |||
103 | /** |
||
104 | * @param \Kreait\Firebase\Messaging\Message $fcmMessage |
||
105 | * @param $token |
||
106 | * @return array |
||
107 | * @throws \Kreait\Firebase\Exception\MessagingException |
||
108 | * @throws \Kreait\Firebase\Exception\FirebaseException |
||
109 | */ |
||
110 | protected function sendToFcm(Message $fcmMessage, $token) |
||
122 | |||
123 | /** |
||
124 | * @param $fcmMessage |
||
125 | * @param array $tokens |
||
126 | * @return \Kreait\Firebase\Messaging\MulticastSendReport |
||
127 | * @throws \Kreait\Firebase\Exception\MessagingException |
||
128 | * @throws \Kreait\Firebase\Exception\FirebaseException |
||
129 | */ |
||
130 | protected function sendToFcmMulticast($fcmMessage, array $tokens) |
||
134 | |||
135 | /** |
||
136 | * Dispatch failed event. |
||
137 | * |
||
138 | * @param mixed $notifiable |
||
139 | * @param \Illuminate\Notifications\Notification $notification |
||
140 | * @param \Throwable $exception |
||
141 | * @return array|null |
||
142 | */ |
||
143 | protected function failedNotification($notifiable, Notification $notification, Throwable $exception) |
||
155 | } |
||
156 |
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.