lithium\data\Collection::current()

public method

Returns the currently pointed to record in the set.

Returns

object|boolean

An instance of Record or false if there is no current valid one.

Source

	#[ReturnTypeWillChange]
	public function current(): mixed {
		if (!$this->_started) {
			$this->rewind();
		}
		if (!$this->_valid) {
			return false;
		}
		return current($this->_data);
	}