public function execute(\PDOStatement $pdoStatement): \PDOStatement
    {
        $result = $pdoStatement->execute();
        if ($result === false) {
            $this->throwError($pdoStatement->errorInfo());
        }

        return $pdoStatement;
    }
public function execute(\PDOStatement $pdoStatement): \PDOStatement
    {
        $result = $pdoStatement->execute();
        if ($result === false) {
            $this->throwError($pdoStatement->errorInfo());
        }

        return $pdoStatement;
    }
public function execute ( \ PDOStatement $ pdoStatement ) : \ PDOStatement { $ result = $ pdoStatement -> execute ( ) ; if ( $ result === false ) { $ this -> throwError ( $ pdoStatement -> errorInfo ( ) ) ; } return $ pdoStatement ; }
Executes a PDO statement.

@param \PDOStatement $pdoStatement
@return \PDOStatement
@throws DatabaseException()
Executes a PDO statement .