PHP Class Namshi\Notificator\Notification\Handler\RabbitMQ

Inheritance: implements Namshi\Notificator\Notification\Handler\HandlerInterface
Exibir arquivo Open project: namshi/notificator

Protected Properties

Property Type Description
$publisher

Public Methods

Method Description
__construct ( PhpAmqpLib\Channel\AMQPChannel $publisher ) Constructor.
getPublisher ( ) : PhpAmqpLib\Channel\AMQPChannel
handle ( Namshi\Notificator\NotificationInterface $notification )
shouldHandle ( Namshi\Notificator\NotificationInterface $notification )

Method Details

__construct() public method

Constructor.
public __construct ( PhpAmqpLib\Channel\AMQPChannel $publisher )
$publisher PhpAmqpLib\Channel\AMQPChannel

getPublisher() public method

public getPublisher ( ) : PhpAmqpLib\Channel\AMQPChannel
return PhpAmqpLib\Channel\AMQPChannel

handle() public method

public handle ( Namshi\Notificator\NotificationInterface $notification )
$notification Namshi\Notificator\NotificationInterface

shouldHandle() public method

public shouldHandle ( Namshi\Notificator\NotificationInterface $notification )
$notification Namshi\Notificator\NotificationInterface

Property Details

$publisher protected_oe property

protected $publisher