public function bindQueue($name, $exchangeName, $routingKey, array $options = [], callable $callback = null)
    {
        $noWait = array_key_exists('noWait', $options) ? (bool)$options['noWait'] : null;
        $arguments = array_key_exists('arguments', $options) ? $options['arguments'] : null;

        $outputFrame = Queue\QueueBindFrame::create(
            $name,
            $exchangeName,
            $routingKey,
            $noWait,
            $arguments
        );
        $outputFrame->frameChannelId = $this->id;
        $this->connection->command($outputFrame);

        if (is_callable($callback)) {
            $this->on(self::EVENT_ON_CHANNEL_BIND_QUEUE_CALLBACK, $callback);
        }
    }
public function bindQueue($name, $exchangeName, $routingKey, array $options = [], callable $callback = null)
    {
        $noWait = array_key_exists('noWait', $options) ? (bool)$options['noWait'] : null;
        $arguments = array_key_exists('arguments', $options) ? $options['arguments'] : null;

        $outputFrame = Queue\QueueBindFrame::create(
            $name,
            $exchangeName,
            $routingKey,
            $noWait,
            $arguments
        );
        $outputFrame->frameChannelId = $this->id;
        $this->connection->command($outputFrame);

        if (is_callable($callback)) {
            $this->on(self::EVENT_ON_CHANNEL_BIND_QUEUE_CALLBACK, $callback);
        }
    }
public function bindQueue ( $ name , $ exchangeName , $ routingKey , array $ options = [ ] , callable $ callback = null ) { $ noWait = array_key_exists ( 'noWait' , $ options ) ? ( bool ) $ options [ 'noWait' ] : null ; $ arguments = array_key_exists ( 'arguments' , $ options ) ? $ options [ 'arguments' ] : null ; $ outputFrame = Queue \ QueueBindFrame :: create ( $ name , $ exchangeName , $ routingKey , $ noWait , $ arguments ) ; $ outputFrame -> frameChannelId = $ this -> id ; $ this -> connection -> command ( $ outputFrame ) ; if ( is_callable ( $ callback ) ) { $ this -> on ( self :: EVENT_ON_CHANNEL_BIND_QUEUE_CALLBACK , $ callback ) ; } }
Bind queue to exchange

@param string $name a queue name
@param string $exchangeName a exchange name
@param string $routingKey a routing key
@param array $options additional options
@param callable|null $callback
@throws \InvalidArgumentException
@throws \PHPDaemon\Clients\AMQP\Driver\Protocol\Exception\AMQPProtocolException
Bind queue to exchange