Total Complexity | 3 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class LoggerInterfaceQueryLogger implements QueryLogger { |
||
8 | /** @var LoggerInterface */ |
||
9 | private $logger; |
||
10 | |||
11 | /** |
||
12 | * @param LoggerInterface $logger |
||
13 | */ |
||
14 | public function __construct(LoggerInterface $logger) { |
||
15 | $this->logger = $logger; |
||
16 | } |
||
17 | |||
18 | /** |
||
19 | * @inheritDoc |
||
20 | */ |
||
21 | public function log(string $query, float $duration): void { |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * @inheritDoc |
||
27 | */ |
||
28 | public function logError(string $query, Throwable $exception, float $duration): void { |
||
30 | } |
||
31 | } |
||
32 |