<?php
namespace Freyo\Xinge;
use Freyo\Xinge\Exceptions\CouldNotSendNotification;
use Illuminate\Notifications\Notification;
class iOSChannel
{
protected $client;
public function __construct(Client $client)
{
$this->client = $client;
}
public function send($notifiable, Notification $notification)
{
$callback = $notification->toXinge($notifiable, $notification);
tap($this->client, $callback);
}
}