public function clear() { if (!msg_remove_queue($this->getQueue())) { throw new QueueException($this, 'Failed to destroy the queue.'); } $this->queue = null; }