PhpAmqpLib/Channel/AMQPChannel.php
public function basic_get($queue = '', $no_ack = false, $ticket = null)
    {
        $ticket = $this->getTicket($ticket);
        list($class_id, $method_id, $args) = $this->protocolWriter->basicGet($ticket, $queue, $no_ack);

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

        return $this->wait(array(
            $this->waitHelper->get_wait('basic.get_ok'),
            $this->waitHelper->get_wait('basic.get_empty')
        ), false, $this->channel_rpc_timeout);
    }
public function basic_get($queue = '', $no_ack = false, $ticket = null)
    {
        $ticket = $this->getTicket($ticket);
        list($class_id, $method_id, $args) = $this->protocolWriter->basicGet($ticket, $queue, $no_ack);

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

        return $this->wait(array(
            $this->waitHelper->get_wait('basic.get_ok'),
            $this->waitHelper->get_wait('basic.get_empty')
        ), false, $this->channel_rpc_timeout);
    }
public function basic_get ( $ queue = '' , $ no_ack = false , $ ticket = null ) { $ ticket = $ this -> getTicket ( $ ticket ) ; list ( $ class_id , $ method_id , $ args ) = $ this -> protocolWriter -> basicGet ( $ ticket , $ queue , $ no_ack ) ; $ this -> send_method_frame ( array ( $ class_id , $ method_id ) , $ args ) ; return $ this -> wait ( array ( $ this -> waitHelper -> get_wait ( 'basic.get_ok' ) , $ this -> waitHelper -> get_wait ( 'basic.get_empty' ) ) , false , $ this -> channel_rpc_timeout ) ; }
Direct access to a queue if no message was available in the queue, return null

@param string $queue
@param bool $no_ack
@param int|null $ticket
@throws \PhpAmqpLib\Exception\AMQPTimeoutException if the specified operation timeout was exceeded
@return mixed
Direct access to a queue if no message was available in the queue return null