![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/mautic.corals.io/vendor/php-amqplib/rabbitmq-bundle/RabbitMq/ |
<?php namespace OldSound\RabbitMqBundle\RabbitMq; class Binding extends BaseAmqp { /** * @var string */ protected $exchange; /** * @var string */ protected $destination; /** * @var bool */ protected $destinationIsExchange = false; /** * @var string */ protected $routingKey; /** * @var bool */ protected $nowait = false; /** * @var array */ protected $arguments; /** * @return string */ public function getExchange() { return $this->exchange; } /** * @param string $exchange */ public function setExchange($exchange) { $this->exchange = $exchange; } /** * @return string */ public function getDestination() { return $this->destination; } /** * @param string $destination */ public function setDestination($destination) { $this->destination = $destination; } /** * @return bool */ public function getDestinationIsExchange() { return $this->destinationIsExchange; } /** * @param bool $destinationIsExchange */ public function setDestinationIsExchange($destinationIsExchange) { $this->destinationIsExchange = $destinationIsExchange; } /** * @return string */ public function getRoutingKey() { return $this->routingKey; } /** * @param string $routingKey */ public function setRoutingKey($routingKey) { $this->routingKey = $routingKey; } /** * @return boolean */ public function isNowait() { return $this->nowait; } /** * @param boolean $nowait */ public function setNowait($nowait) { $this->nowait = $nowait; } /** * @return array */ public function getArguments() { return $this->arguments; } /** * @param array $arguments */ public function setArguments($arguments) { $this->arguments = $arguments; } /** * create bindings * * @return void */ public function setupFabric() { $method = ($this->destinationIsExchange) ? 'exchange_bind' : 'queue_bind'; $channel = $this->getChannel(); call_user_func( [$channel, $method], $this->destination, $this->exchange, $this->routingKey, $this->nowait, $this->arguments ); } }