/** * {@inheritdoc} */ public function close() { parent::close(); $this->driver->removeQueue($this->name); }
/** * {@inheritDoc} */ public function __construct($name) { parent::__construct($name); $this->queue = new SplQueue(); $this->queue->setIteratorMode(SplQueue::IT_MODE_DELETE | SplQueue::IT_MODE_FIFO); }