public function fetchRow(
            string $sql,
            array $values = [],
            int $fetchMode = null,
            array $driverOptions = []
    ): array {
        return $this->dbConnection->prepare($sql)
                ->execute($values)
                ->fetch($fetchMode, $driverOptions);
    }
public function fetchRow(
            string $sql,
            array $values = [],
            int $fetchMode = null,
            array $driverOptions = []
    ): array {
        return $this->dbConnection->prepare($sql)
                ->execute($values)
                ->fetch($fetchMode, $driverOptions);
    }
public function fetchRow ( string $ sql , array $ values = [ ] , int $ fetchMode = null , array $ driverOptions = [ ] ) : array { return $ this -> dbConnection -> prepare ( $ sql ) -> execute ( $ values ) -> fetch ( $ fetchMode , $ driverOptions ) ; }
returns first result row for given sql query

@param   string  $sql            sql query to fetch data with
@param   array   $values         map of values in case $sql contains a prepared statement
@param   int     $fetchMode      optional  the mode to use for fetching the data
@param   array   $driverOptions  optional  driver specific arguments
@return  array
@since   2.4.0
returns first result row for given sql query