for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the AppleApnPush package
*
* (c) Vitaliy Zhuk <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code
*/
namespace Apple\ApnPush\Sender;
use Apple\ApnPush\Model\Message;
use Apple\ApnPush\Model\Receiver;
use Apple\ApnPush\Protocol\ProtocolInterface;
/**
* Default message sender
class Sender implements SenderInterface
{
* @var ProtocolInterface
private $protocol;
* Constructor.
* @param ProtocolInterface $protocol
public function __construct(ProtocolInterface $protocol)
$this->protocol = $protocol;
}
* {@inheritdoc}
public function send(Receiver $receiver, Message $message, bool $sandbox = false)
$this->protocol->send($receiver, $message, $sandbox);