| 1 | <?php |
||
| 9 | class ApnChannel |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * The sandbox environment identifier. |
||
| 13 | * |
||
| 14 | * @var int |
||
| 15 | */ |
||
| 16 | const SANDBOX = 0; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * The production environment identifier. |
||
| 20 | * |
||
| 21 | * @var int |
||
| 22 | */ |
||
| 23 | const PRODUCTION = 1; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * The APNS client. |
||
| 27 | * |
||
| 28 | * @var \Pushok\Client |
||
| 29 | */ |
||
| 30 | protected $client; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Create a new channel instance. |
||
| 34 | * |
||
| 35 | * @param \Pushok\Client $client |
||
| 36 | */ |
||
| 37 | public function __construct(Client $client) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Send the notification to Apple Push Notification Service. |
||
| 44 | * |
||
| 45 | * @param mixed $notifiable |
||
| 46 | * @param \Illuminate\Notifications\Notification $notification |
||
| 47 | */ |
||
| 48 | public function send($notifiable, Notification $notification) |
||
| 62 | |||
| 63 | /** |
||
| 64 | * Send the notification to each of the provided tokens. |
||
| 65 | * |
||
| 66 | * @param array $tokens |
||
| 67 | * @param \Pushok\Payload $payload |
||
| 68 | * @return void |
||
| 69 | */ |
||
| 70 | protected function sendNotifications($tokens, $payload) |
||
| 82 | } |
||
| 83 |
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.