/** * Rewinds the collection * * @return void */ public function rewind() { if ($this->_index === 0 && !$this->_started) { $this->_started = true; parent::rewind(); return; } $this->_index = 0; }