lithium\data\entity\Document::rewind()

public method

Rewinds to the first item.

Returns

mixed

The current item after rewinding.

Source

	#[ReturnTypeWillChange]
	public function rewind(): mixed {
		reset($this->_data);
		reset($this->_updated);
		$this->_valid = (count($this->_updated) > 0);
		return current($this->_updated);
	}