PhpAmqpLib/Channel/AMQPChannel.php
public function queue_bind(
        $queue,
        $exchange,
        $routing_key = '',
        $nowait = false,
        $arguments = array(),
        $ticket = null
    ) {
        $ticket = $this->getTicket($ticket);

        list($class_id, $method_id, $args) = $this->protocolWriter->queueBind(
            $ticket,
            $queue,
            $exchange,
            $routing_key,
            $nowait,
            $arguments
        );

        $this->send_method_frame(array($class_id, $method_id), $args);

        if ($nowait) {
            return null;
        }

        return $this->wait(array(
            $this->waitHelper->get_wait('queue.bind_ok')
        ), false, $this->channel_rpc_timeout);
    }
public function queue_bind(
        $queue,
        $exchange,
        $routing_key = '',
        $nowait = false,
        $arguments = array(),
        $ticket = null
    ) {
        $ticket = $this->getTicket($ticket);

        list($class_id, $method_id, $args) = $this->protocolWriter->queueBind(
            $ticket,
            $queue,
            $exchange,
            $routing_key,
            $nowait,
            $arguments
        );

        $this->send_method_frame(array($class_id, $method_id), $args);

        if ($nowait) {
            return null;
        }

        return $this->wait(array(
            $this->waitHelper->get_wait('queue.bind_ok')
        ), false, $this->channel_rpc_timeout);
    }
public function queue_bind ( $ queue , $ exchange , $ routing_key = '' , $ nowait = false , $ arguments = array ( ) , $ ticket = null ) { $ ticket = $ this -> getTicket ( $ ticket ) ; list ( $ class_id , $ method_id , $ args ) = $ this -> protocolWriter -> queueBind ( $ ticket , $ queue , $ exchange , $ routing_key , $ nowait , $ arguments ) ; $ this -> send_method_frame ( array ( $ class_id , $ method_id ) , $ args ) ; if ( $ nowait ) { return null ; } return $ this -> wait ( array ( $ this -> waitHelper -> get_wait ( 'queue.bind_ok' ) ) , false , $ this -> channel_rpc_timeout ) ; }
Binds queue to an exchange

@param string $queue
@param string $exchange
@param string $routing_key
@param bool $nowait
@param array $arguments
@param int|null $ticket
@throws \PhpAmqpLib\Exception\AMQPTimeoutException if the specified operation timeout was exceeded
@return mixed|null
Binds queue to an exchange