1 | <?php |
||
22 | |||
23 | 23 | public function __construct(Connection $connection) |
|
24 | { |
||
25 | 23 | $this->connection = $connection; |
|
26 | 23 | } |
|
27 | |||
28 | /** |
||
29 | * {@inheritdoc} |
||
30 | * |
||
31 | * @throws DBALException |
||
32 | */ |
||
33 | 15 | public function execute(string $query, array $parameters = [], array $types = []): ExecutionResultInterface |
|
34 | { |
||
35 | /** @var Statement<mixed> $statement */ |
||
36 | 15 | $statement = $this->connection->executeQuery($query, $parameters, $types); |
|
37 | |||
38 | 15 | return new DoctrineDbalExecutionResult($statement); |
|
39 | } |
||
40 | } |
||
41 |