PhpAmqpLib/Channel/AMQPChannel.php
protected function basic_return($reader, $message)
    {
        $callback = $this->basic_return_callback;
        if (!is_callable($callback)) {
            $this->debug->debug_msg('Skipping unhandled basic_return message');
            return null;
        }

        $reply_code = $reader->read_short();
        $reply_text = $reader->read_shortstr();
        $exchange = $reader->read_shortstr();
        $routing_key = $reader->read_shortstr();

        call_user_func_array($callback, array(
            $reply_code,
            $reply_text,
            $exchange,
            $routing_key,
            $message,
        ));
    }
protected function basic_return($reader, $message)
    {
        $callback = $this->basic_return_callback;
        if (!is_callable($callback)) {
            $this->debug->debug_msg('Skipping unhandled basic_return message');
            return null;
        }

        $reply_code = $reader->read_short();
        $reply_text = $reader->read_shortstr();
        $exchange = $reader->read_shortstr();
        $routing_key = $reader->read_shortstr();

        call_user_func_array($callback, array(
            $reply_code,
            $reply_text,
            $exchange,
            $routing_key,
            $message,
        ));
    }
protected function basic_return ( $ reader , $ message ) { $ callback = $ this -> basic_return_callback ; if ( ! is_callable ( $ callback ) ) { $ this -> debug -> debug_msg ( 'Skipping unhandled basic_return message' ) ; return null ; } $ reply_code = $ reader -> read_short ( ) ; $ reply_text = $ reader -> read_shortstr ( ) ; $ exchange = $ reader -> read_shortstr ( ) ; $ routing_key = $ reader -> read_shortstr ( ) ; call_user_func_array ( $ callback , array ( $ reply_code , $ reply_text , $ exchange , $ routing_key , $ message , ) ) ; }
Returns a failed message

@param AMQPReader $reader
@param AMQPMessage $message
@return null
Returns a failed message