1 | <?php |
||
15 | class ApnChannel |
||
16 | { |
||
17 | use InteractsWithConnection; |
||
18 | |||
19 | /** |
||
20 | * The sandbox environment identifier. |
||
21 | * |
||
22 | * @var int |
||
23 | */ |
||
24 | const SANDBOX = 0; |
||
25 | |||
26 | /** |
||
27 | * The production environment identifier. |
||
28 | * |
||
29 | * @var int |
||
30 | */ |
||
31 | const PRODUCTION = 1; |
||
32 | |||
33 | /** @var \ZendService\Apple\Apns\Client\Message */ |
||
34 | protected $client; |
||
35 | |||
36 | /** @var \Illuminate\Events\Dispatcher */ |
||
37 | protected $events; |
||
38 | |||
39 | /** @var \NotificationChannels\Apn\ApnCredentials */ |
||
40 | protected $credentials; |
||
41 | |||
42 | /** |
||
43 | * Create a new instance of the APN channel. |
||
44 | * |
||
45 | * @param \ZendService\Apple\Apns\Client\Message $client |
||
46 | * @param \Illuminate\Events\Dispatcher $events |
||
47 | * @param \NotificationChannels\Apn\ApnCredentials $credentials |
||
48 | */ |
||
49 | 2 | public function __construct(Client $client, Dispatcher $events, ApnCredentials $credentials) |
|
50 | { |
||
51 | 2 | $this->client = $client; |
|
52 | 2 | $this->events = $events; |
|
53 | 2 | $this->credentials = $credentials; |
|
54 | 2 | } |
|
55 | |||
56 | /** |
||
57 | * Send the notification to Apple Push Notification Service. |
||
58 | * |
||
59 | * @param mixed $notifiable |
||
60 | * @param \Illuminate\Notifications\Notification $notification |
||
61 | * |
||
62 | * @throws \NotificationChannels\Apn\Exceptions\SendingFailed |
||
63 | */ |
||
64 | 2 | public function send($notifiable, Notification $notification) |
|
110 | } |
||
111 |
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.