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