public function listMessages($queueName, ListMessagesOptions $options = null)
    {
        return $this->listMessagesAsync($queueName, $options)->wait();
    }
public function listMessages($queueName, ListMessagesOptions $options = null)
    {
        return $this->listMessagesAsync($queueName, $options)->wait();
    }
public function listMessages ( $ queueName , ListMessagesOptions $ options = null ) { return $ this -> listMessagesAsync ( $ queueName , $ options ) -> wait ( ) ; }
Lists all messages in the queue.

@param string              $queueName The queue name.
@param ListMessagesOptions $options   The optional parameters.

@return Models\ListMessagesResult
Lists all messages in the queue .