Total Complexity | 11 |
Total Lines | 53 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | final class DoctrineDbalLogger implements SQLLogger |
||
14 | { |
||
15 | const MAX_STRING_LENGTH = 32; |
||
16 | const BINARY_DATA_VALUE = '(binary value)'; |
||
17 | |||
18 | /** |
||
19 | * @var LoggerInterface |
||
20 | */ |
||
21 | private $logger; |
||
22 | |||
23 | 2 | public function __construct(LoggerInterface $logger) |
|
24 | { |
||
25 | 2 | $this->logger = $logger; |
|
26 | 2 | } |
|
27 | |||
28 | /** |
||
29 | * {@inheritdoc} |
||
30 | */ |
||
31 | 1 | public function startQuery($sql, ?array $params = null, ?array $types = null): void |
|
39 | } |
||
40 | 1 | } |
|
41 | |||
42 | 1 | public function stopQuery(): void |
|
44 | 1 | } |
|
45 | |||
46 | 1 | private function escapeParams(array $params): array |
|
68 |