1 | <?php |
||
13 | class QueryLogger implements \Countable |
||
14 | { |
||
15 | /** |
||
16 | * @var int |
||
17 | */ |
||
18 | private $nbQueries = 0; |
||
19 | |||
20 | /** |
||
21 | * @var array |
||
22 | */ |
||
23 | private $statements = []; |
||
24 | |||
25 | /** |
||
26 | * @var array |
||
27 | */ |
||
28 | private $statementsHash = []; |
||
29 | |||
30 | /** |
||
31 | * @param StatementInterface $statement |
||
32 | */ |
||
33 | public function record(StatementInterface $statement) |
||
47 | |||
48 | /** |
||
49 | * @param StatementResultInterface $statementResult |
||
50 | */ |
||
51 | public function finish(StatementResultInterface $statementResult) |
||
75 | |||
76 | /** |
||
77 | * {@inheritdoc} |
||
78 | */ |
||
79 | public function count() |
||
83 | |||
84 | /** |
||
85 | * @return array[] |
||
86 | */ |
||
87 | public function getStatements() |
||
91 | |||
92 | /** |
||
93 | * @return array |
||
94 | */ |
||
95 | public function getStatementsHash() |
||
99 | |||
100 | /** |
||
101 | * @return int |
||
102 | */ |
||
103 | public function getElapsedTime() |
||
117 | } |
||
118 |