lithium\data\collection\DocumentArray::rewind PHP Method

rewind() public method

Rewinds the collection of sub-Documents to the beginning and returns the first one found.
public rewind ( ) : object
return object Returns the first `Document` object instance in the collection.
    public function rewind()
    {
        $data = parent::rewind();
        $key = key($this->_data);
        return $this->offsetGet($key);
    }