/** * Return the approximate number of messages in the queue * * @param Zend_Queue|null $queue * @return integer */ public function count(Zend_Queue $queue = null) { if ($queue !== null) { throw new Zend_Queue_Exception('Queue parameter is not supported'); } return $this->_zendQueue->getNumOfJobsInQueue(); }
/** * Return the approximate number of messages in the queue * * @param Zend_Queue|null $queue * @return integer */ public function count(Zend_Queue $queue = null) { if ($queue !== null) { require_once PHP_LIBRARY_PATH . 'Zend/Queue/Exception.php'; throw new Zend_Queue_Exception('Queue parameter is not supported'); } return $this->_zendQueue->getNumOfJobsInQueue(); }