src/Result.php
/**
     * Returns the first document object in the results array.
     * 
     * @return Model
     */
Returns the first document object in the results array.

@return Model
Returns the first document object in the results array . @return Model
public function first() {
        if ($this->offsetExists(0)) {
            return $this->offsetGet(0);
        } else {
            trigger_error('Can not get null of empty result set', E_USER_WARNING);
            return null;
        }
    }
public function first ( ) { if ( $ this -> offsetExists ( 0 ) ) { return $ this -> offsetGet ( 0 ) ; } else { trigger_error ( 'Can not get null of empty result set' , E_USER_WARNING ) ; return null ; } }
Returns the first document object in the results array.
Returns the first document object in the results array .