public function execute(string $query, array $marks = null): PDOStatement
    {
        $statement = $this->connection->prepare($query);
        $statement->execute($marks);

        return $statement;
    }
public function execute(string $query, array $marks = null): PDOStatement
    {
        $statement = $this->connection->prepare($query);
        $statement->execute($marks);

        return $statement;
    }
public function execute ( string $ query , array $ marks = null ) : PDOStatement { $ statement = $ this -> connection -> prepare ( $ query ) ; $ statement -> execute ( $ marks ) ; return $ statement ; }
Execute a query and returns the statement object with the result.

@throws Exception
Execute a query and returns the statement object with the result .