PHP Class Swarrot\Broker\MessagePublisher\PeclPackageMessagePublisher

Inheritance: implements Swarrot\Broker\MessagePublisher\MessagePublisherInterface
Datei anzeigen Open project: swarrot/swarrot Class Usage Examples

Protected Properties

Property Type Description
$exchange
$flags
$logger

Public Methods

Method Description
__construct ( AMQPExchange $exchange, $flags = AMQP_NOPARAM, Psr\Log\LoggerInterface $logger = null )
getExchangeName ( )
publish ( Swarrot\Broker\Message $message, $key = null )

Private Methods

Method Description
sanitizeProperties ( array $properties )

Method Details

__construct() public method

public __construct ( AMQPExchange $exchange, $flags = AMQP_NOPARAM, Psr\Log\LoggerInterface $logger = null )
$exchange AMQPExchange
$logger Psr\Log\LoggerInterface

getExchangeName() public method

public getExchangeName ( )

publish() public method

public publish ( Swarrot\Broker\Message $message, $key = null )
$message Swarrot\Broker\Message

Property Details

$exchange protected_oe property

protected $exchange

$flags protected_oe property

protected $flags

$logger protected_oe property

protected $logger