PhpAmqpLib/Channel/AMQPChannel.php
public function set_return_listener($callback)
    {
        if (!is_callable($callback)) {
            throw new \InvalidArgumentException(sprintf(
                'Given callback "%s" should be callable. %s type was given.',
                $callback,
                gettype($callback)
            ));
        }

        $this->basic_return_callback = $callback;
    }
public function set_return_listener($callback)
    {
        if (!is_callable($callback)) {
            throw new \InvalidArgumentException(sprintf(
                'Given callback "%s" should be callable. %s type was given.',
                $callback,
                gettype($callback)
            ));
        }

        $this->basic_return_callback = $callback;
    }
public function set_return_listener ( $ callback ) { if ( ! is_callable ( $ callback ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Given callback "%s" should be callable. %s type was given.' , $ callback , gettype ( $ callback ) ) ) ; } $ this -> basic_return_callback = $ callback ; }
Sets callback for basic_return

@param  callable $callback
@throws \InvalidArgumentException if $callback is not callable
Sets callback for basic_return