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