Ddd\Infrastructure\Application\Notification\AmqpExchangeListener::__construct PHP Method

__construct() public method

public __construct ( AMQPQueue $queue, React\EventLoop\LoopInterface $loop, JMS\Serializer\Serializer $serializer )
$queue AMQPQueue
$loop React\EventLoop\LoopInterface
$serializer JMS\Serializer\Serializer
    public function __construct(AMQPQueue $queue, LoopInterface $loop, Serializer $serializer)
    {
        $this->queue = $queue;
        $this->loop = $loop;
        $this->timer = $this->loop->addPeriodicTimer(1, [$this, 'listen']);
        $this->serializer = $serializer;
    }