public function first(): ?\stdClass
    {
        $pdoStatement = $this->provideStatement();
        $pdoStatement = $this->execute($pdoStatement);
        $row = $pdoStatement->fetch(\PDO::FETCH_OBJ);
        return (!empty($row)) ? $row : null;
    }
public function first(): ?\stdClass
    {
        $pdoStatement = $this->provideStatement();
        $pdoStatement = $this->execute($pdoStatement);
        $row = $pdoStatement->fetch(\PDO::FETCH_OBJ);
        return (!empty($row)) ? $row : null;
    }
public function first ( ) : ? \ stdClass { $ pdoStatement = $ this -> provideStatement ( ) ; $ pdoStatement = $ this -> execute ( $ pdoStatement ) ; $ row = $ pdoStatement -> fetch ( \ PDO :: FETCH_OBJ ) ; return ( ! empty ( $ row ) ) ? $ row : null ; }
Executes select query and returns first matching row.

@return \stdClass|null
@throws DatabaseException
Executes select query and returns first matching row .