public function bind($exchange_name, $routing_key = '', array $arguments = array()) {

        try {
            $this->channel->_getChannel()->exchange_bind($this->name, $exchange_name, $routing_key, $nowait = false, $arguments);
        } catch (AMQPRuntimeException $e) {
            throw new AMQPConnectionException($e->getMessage(), $e->getCode(), $e->getPrevious());
        } catch (Exception $e) {
            throw new AMQPExchangeException($e->getMessage(), $e->getCode(), $e->getPrevious());
        }

        return true;

    }
public function bind($exchange_name, $routing_key = '', array $arguments = array()) {

        try {
            $this->channel->_getChannel()->exchange_bind($this->name, $exchange_name, $routing_key, $nowait = false, $arguments);
        } catch (AMQPRuntimeException $e) {
            throw new AMQPConnectionException($e->getMessage(), $e->getCode(), $e->getPrevious());
        } catch (Exception $e) {
            throw new AMQPExchangeException($e->getMessage(), $e->getCode(), $e->getPrevious());
        }

        return true;

    }
public function bind ( $ exchange_name , $ routing_key = '' , array $ arguments = array ( ) ) { try { $ this -> channel -> _getChannel ( ) -> exchange_bind ( $ this -> name , $ exchange_name , $ routing_key , $ nowait = false , $ arguments ) ; } catch ( AMQPRuntimeException $ e ) { throw new AMQPConnectionException ( $ e -> getMessage ( ) , $ e -> getCode ( ) , $ e -> getPrevious ( ) ) ; } catch ( Exception $ e ) { throw new AMQPExchangeException ( $ e -> getMessage ( ) , $ e -> getCode ( ) , $ e -> getPrevious ( ) ) ; } return true ; }
Bind to another exchange.

Bind an exchange to another exchange using the specified routing key.

@param string $exchange_name Name of the exchange to bind.
@param string $routing_key The routing key to use for binding.
@param array $arguments Additional binding arguments.

@throws AMQPExchangeException   On failure.
@throws AMQPChannelException    If the channel is not open.
@throws AMQPConnectionException If the connection to the broker was lost.
@return boolean true on success or false on failure.
Bind to another exchange .