for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Rojtjo\Notifier\Transports;
use Rojtjo\Notifier\Notification;
use Rojtjo\Notifier\Transport;
class ArrayTransport implements Transport
{
/**
* @var array
*/
private $new = [];
private $current = [];
* @param Notification $notification
* @return void
public function send(Notification $notification)
$this->new[] = $notification;
}
* @return array
public function getNewNotifications()
return $this->new;
public function getCurrentNotifications()
return $this->current;