public function countMessagesInQueues(): int
    {
        return array_sum(array_map(function ($queueName) {
            return $this->queue($queueName)->declareQueue();
        }, $this->getQueueNames()));
    }
public function countMessagesInQueues(): int
    {
        return array_sum(array_map(function ($queueName) {
            return $this->queue($queueName)->declareQueue();
        }, $this->getQueueNames()));
    }
public function countMessagesInQueues ( ) : int { return array_sum ( array_map ( function ( $ queueName ) { return $ this -> queue ( $ queueName ) -> declareQueue ( ) ; } , $ this -> getQueueNames ( ) ) ) ; }
Returns an approximate count of the messages in defined queues.
Returns an approximate count of the messages in defined queues .