PHP Класс Ddd\Infrastructure\Application\Notification\AmqpExchangeListener

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$closed boolean Flag to indicate if this listener is closed.
$loop React\EventLoop\LoopInterface Event loop.
$queue AMQPQueue AMQP message queue to read messages from.

Открытые методы

Метод Описание
__construct ( AMQPQueue $queue, React\EventLoop\LoopInterface $loop, JMS\Serializer\Serializer $serializer )
close ( )
listen ( )
stop ( )

Защищенные методы

Метод Описание
handle ( stdClass $event ) : void The action to perform
listensTo ( string $typeName ) : boolean This method will be responsible to decide whether this listener listens to an specific event type or not, given an event type name

Описание методов

__construct() публичный Метод

public __construct ( AMQPQueue $queue, React\EventLoop\LoopInterface $loop, JMS\Serializer\Serializer $serializer )
$queue AMQPQueue
$loop React\EventLoop\LoopInterface
$serializer JMS\Serializer\Serializer

close() публичный Метод

public close ( )

handle() абстрактный защищенный Метод

The action to perform
abstract protected handle ( stdClass $event ) : void
$event stdClass
Результат void

listen() публичный Метод

public listen ( )

listensTo() абстрактный защищенный Метод

This method will be responsible to decide whether this listener listens to an specific event type or not, given an event type name
abstract protected listensTo ( string $typeName ) : boolean
$typeName string
Результат boolean

stop() публичный Метод

public stop ( )

Описание свойств

$closed защищенное свойство

Flag to indicate if this listener is closed.
protected bool $closed
Результат boolean

$loop защищенное свойство

Event loop.
protected LoopInterface,React\EventLoop $loop
Результат React\EventLoop\LoopInterface

$queue защищенное свойство

AMQP message queue to read messages from.
protected AMQPQueue $queue
Результат AMQPQueue