1 | <?php |
||
12 | class PsrSqlLogger implements SQLLogger |
||
13 | { |
||
14 | /** |
||
15 | * @var LoggerInterface |
||
16 | */ |
||
17 | private $logger; |
||
18 | |||
19 | /** |
||
20 | * @var float |
||
21 | */ |
||
22 | private $start; |
||
23 | |||
24 | /** |
||
25 | * constructor. |
||
26 | * |
||
27 | * @param LoggerInterface $logger |
||
28 | */ |
||
29 | 4 | public function __construct(LoggerInterface $logger) |
|
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | 1 | public function startQuery($sql, array $params = null, array $types = null) |
|
42 | |||
43 | /** |
||
44 | * [@inheritdoc} |
||
45 | */ |
||
46 | 1 | public function stopQuery() |
|
51 | } |
||
52 |