lithium\data\Collection::current PHP Method

current() public method

Returns the currently pointed to record in the set.
public current ( ) : object | boolean
return object | boolean An instance of `Record` or `false` if there is no current valid one.
    public function current()
    {
        if (!$this->_started) {
            $this->rewind();
        }
        if (!$this->_valid) {
            return false;
        }
        return current($this->_data);
    }