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