1 | <?php |
||
14 | final class Neo4jDataCollector extends DataCollector |
||
15 | { |
||
16 | /** |
||
17 | * @var QueryLogger |
||
18 | */ |
||
19 | private $queryLogger; |
||
20 | |||
21 | public function __construct(QueryLogger $logger) |
||
25 | |||
26 | /** |
||
27 | * {@inheritdoc} |
||
28 | */ |
||
29 | public function collect(Request $request, Response $response, \Exception $exception = null) |
||
35 | |||
36 | /** |
||
37 | * @return int |
||
38 | */ |
||
39 | public function getQueryCount() |
||
43 | |||
44 | /** |
||
45 | * @return QueryLogger |
||
46 | */ |
||
47 | public function getStatements() |
||
51 | |||
52 | /** |
||
53 | * @return float |
||
54 | */ |
||
55 | public function getTime() |
||
59 | |||
60 | /** |
||
61 | * @return float |
||
62 | */ |
||
63 | public function getTimeForQuery() |
||
67 | |||
68 | /** |
||
69 | * @return string |
||
70 | */ |
||
71 | public function getName() |
||
75 | } |
||
76 |