public function next() { $this->sequence->next(); $this->index += 1; $this->count = $this->index + 1; $this->first = $this->count == 1; $this->last = $this->count == $this->length; }