| Total Complexity | 4 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class EchoSQLLogger implements SQLLogger |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * {@inheritdoc} |
||
| 16 | */ |
||
| 17 | public function startQuery($sql, ?array $params = null, ?array $types = null) |
||
| 18 | { |
||
| 19 | echo $sql . PHP_EOL; |
||
| 20 | |||
| 21 | if (count($params) > 0) { |
||
| 22 | var_dump($params); |
||
|
|
|||
| 23 | } |
||
| 24 | |||
| 25 | if (count($types) === 0) { |
||
| 26 | return; |
||
| 27 | } |
||
| 28 | |||
| 29 | var_dump($types); |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * {@inheritdoc} |
||
| 34 | */ |
||
| 35 | public function stopQuery() |
||
| 37 | } |
||
| 38 | } |
||
| 39 |