src/MVC/Model/ModelArray.php
public function first()
    {
        if (!empty($this->data)) {
            if (Collection::count($this->data) > 0) {
                return $this->data[0];
            } else {
                return;
            }
        } else {
            return;
        }
    }
public function first()
    {
        if (!empty($this->data)) {
            if (Collection::count($this->data) > 0) {
                return $this->data[0];
            } else {
                return;
            }
        } else {
            return;
        }
    }
public function first ( ) { if ( ! empty ( $ this -> data ) ) { if ( Collection :: count ( $ this -> data ) > 0 ) { return $ this -> data [ 0 ] ; } else { return ; } } else { return ; } }
Get first row of data selected by where clause.
Get first row of data selected by where clause .