public function push($element) { if ($this->isFull()) { throw new exceptions\FullCollectionException('Cannot push to full queue.'); } parent::push($element); }
/** * @see Bricks\Deferred\Queue\Queue::done */ public function done($taskId) { $this->initQueue(); parent::done($taskId); $this->saveQueue(); }