Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types = 1); |
||
24 | public function query(array $query=[], string $path=''): Result { |
||
25 | $time = microtime(true); |
||
26 | |||
27 | $result = $this->service->query($query, $path); |
||
28 | $this->logger->log( |
||
29 | $this->level, |
||
30 | "[{time}] ".get_class($this->service)." {path}?{query} {duration}ms", |
||
31 | [ |
||
32 | 'query' => $query, |
||
33 | 'path' => $path, |
||
34 | 'duration' => microtime(true)-$time, |
||
35 | 'result' => $result, |
||
36 | ] |
||
37 | ); |
||
38 | |||
39 | return $result; |
||
40 | } |
||
41 | } |
||
42 |