1 | <?php |
||
11 | class ApnChannel |
||
12 | { |
||
13 | /** |
||
14 | * The sandbox environment identifier. |
||
15 | * |
||
16 | * @var int |
||
17 | */ |
||
18 | const SANDBOX = 0; |
||
19 | |||
20 | /** |
||
21 | * The production environment identifier. |
||
22 | * |
||
23 | * @var int |
||
24 | */ |
||
25 | const PRODUCTION = 1; |
||
26 | |||
27 | /** |
||
28 | * The APNS client. |
||
29 | * |
||
30 | * @var \Pushok\Client |
||
31 | */ |
||
32 | protected $client; |
||
33 | |||
34 | /** |
||
35 | * The event dispatcher. |
||
36 | * |
||
37 | * @var \Illuminate\Contracts\Events\Dispatcher |
||
38 | */ |
||
39 | protected $events; |
||
40 | |||
41 | /** |
||
42 | * Create a new channel instance. |
||
43 | * |
||
44 | * @param \Pushok\Client $client |
||
45 | * @param \Illuminate\Contracts\Events\Dispatcher $events |
||
46 | */ |
||
47 | 3 | public function __construct(Client $client, Dispatcher $events) |
|
52 | |||
53 | /** |
||
54 | * Send the notification to Apple Push Notification Service. |
||
55 | * |
||
56 | * @param mixed $notifiable |
||
57 | * @param \Illuminate\Notifications\Notification $notification |
||
58 | * @return array|void |
||
59 | */ |
||
60 | 3 | public function send($notifiable, Notification $notification) |
|
80 | |||
81 | /** |
||
82 | * Send the message to the given tokens through the given client. |
||
83 | * |
||
84 | * @param \Pushok\Client $client |
||
85 | * @param \NotificationChannels\Apn\ApnMessage $message |
||
86 | * @param array $tokens |
||
87 | * @return array |
||
88 | */ |
||
89 | 3 | protected function sendNotifications(Client $client, ApnMessage $message, array $tokens) |
|
97 | |||
98 | /** |
||
99 | * Dispatch failed events for notifications that weren't delivered. |
||
100 | * |
||
101 | * @param mixed $notifiable |
||
102 | * @param \Illuminate\Notifications\Notification $notification |
||
103 | * @param array $responses |
||
104 | * @return void |
||
105 | */ |
||
106 | 3 | protected function dispatchEvents($notifiable, $notification, array $responses) |
|
122 | } |
||
123 |
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.