Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
50 | public function execute($sql, array $parameters) : \PDOStatement |
||
51 | { |
||
52 | $statement = $this->pdo->prepare($sql); |
||
53 | $result = $statement->execute($parameters); |
||
54 | |||
55 | if (false === $result) { |
||
56 | throw new PdoExecutionFailed($statement->errorInfo()); |
||
57 | } |
||
58 | |||
59 | return $statement; |
||
60 | } |
||
61 | } |
||
62 |