PHP Class Ddd\Infrastructure\Application\Notification\AmqpMessageProducer

Inheritance: implements Ddd\Application\Notification\MessageProducer
ファイルを表示 Open project: carlosbuenosvinos/ddd Class Usage Examples

Protected Properties

Property Type Description
$exchange AMQPExchange AMQP message exchange to send messages to.

Public Methods

Method Description
__construct ( AMQPExchange $exchange )
close ( $exchangeName )
open ( $exchangeName )
send ( $exchangeName, $notificationMessage, $notificationType, $notificationId, DateTime $notificationOccurredOn )

Method Details

__construct() public method

public __construct ( AMQPExchange $exchange )
$exchange AMQPExchange

close() public method

public close ( $exchangeName )

open() public method

public open ( $exchangeName )

send() public method

public send ( $exchangeName, $notificationMessage, $notificationType, $notificationId, DateTime $notificationOccurredOn )
$notificationOccurredOn DateTime

Property Details

$exchange protected_oe property

AMQP message exchange to send messages to.
protected AMQPExchange $exchange
return AMQPExchange