public function first()
    {
        $this->limit(1);
        $result = $this->get();
        return empty($result) ? null : $result[0];
    }
public function first()
    {
        $this->limit(1);
        $result = $this->get();
        return empty($result) ? null : $result[0];
    }
public function first ( ) { $ this -> limit ( 1 ) ; $ result = $ this -> get ( ) ; return empty ( $ result ) ? null : $ result [ 0 ] ; }
Get first row

@return \stdClass|null
Get first row