1 | <?php |
||
15 | class ApnChannel |
||
16 | { |
||
17 | /** |
||
18 | * The sandbox environment identifier. |
||
19 | * |
||
20 | * @var int |
||
21 | */ |
||
22 | const SANDBOX = 0; |
||
23 | |||
24 | /** |
||
25 | * The production environment identifier. |
||
26 | * |
||
27 | * @var int |
||
28 | */ |
||
29 | const PRODUCTION = 1; |
||
30 | |||
31 | /** @var \ZendService\Apple\Apns\Client\Message */ |
||
32 | protected $client; |
||
33 | |||
34 | /** @var \Illuminate\Events\Dispatcher */ |
||
35 | protected $events; |
||
36 | |||
37 | /** |
||
38 | * Create a new instance of the APN channel. |
||
39 | * |
||
40 | * @param \ZendService\Apple\Apns\Client\Message $client |
||
41 | * @param \Illuminate\Events\Dispatcher $events |
||
42 | */ |
||
43 | 2 | public function __construct(Client $client, Dispatcher $events) |
|
48 | |||
49 | /** |
||
50 | * Send the notification to Apple Push Notification Service. |
||
51 | * |
||
52 | * @param mixed $notifiable |
||
53 | * @param \Illuminate\Notifications\Notification $notification |
||
54 | */ |
||
55 | 2 | public function send($notifiable, Notification $notification) |
|
72 | |||
73 | /** |
||
74 | * Get the packet for the given message and token. |
||
75 | * |
||
76 | * @param \NotificationChannels\Apn\ApnMessage $message |
||
77 | * @param string |
||
78 | * @return \ZendService\Apple\Apns\Message |
||
79 | */ |
||
80 | 2 | protected function getPacket($message, $token) |
|
97 | |||
98 | /** |
||
99 | * Sent the notification to the given token. |
||
100 | * |
||
101 | * @param mixed $notifiable |
||
102 | * @param \Illuminate\Notifications\Notification $notification |
||
103 | * @param \ZendService\Apple\Apns\Message $packet |
||
104 | * @param string $token |
||
105 | * @return void |
||
106 | * @throws \NotificationChannels\Apn\Exceptions\SendingFailed |
||
107 | */ |
||
108 | 2 | protected function sendPacket($notifiable, $notification, $packet, $token) |
|
125 | } |
||
126 |
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.