/** * @inheritdoc */ public function next() { if (!$this->valid()) { $this->last = null; } $this->length--; $this->current = $this->current->getRight(); }
/** * @inheritdoc */ public function next() { $this->length--; $this->current = $this->current->getRight(); }