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) |
||
54 | |||
55 | /** |
||
56 | * @param StatementResultInterface $statementResult |
||
57 | */ |
||
58 | public function finish(StatementResultInterface $statementResult) |
||
79 | |||
80 | /** |
||
81 | * {@inheritdoc} |
||
82 | */ |
||
83 | public function count() |
||
87 | |||
88 | /** |
||
89 | * @return array[] |
||
90 | */ |
||
91 | public function getStatements() |
||
95 | |||
96 | /** |
||
97 | * @return array |
||
98 | */ |
||
99 | public function getStatementsHash() |
||
103 | |||
104 | /** |
||
105 | * @return int |
||
106 | */ |
||
107 | public function getElapsedTime() |
||
121 | } |
||
122 |