1 | <?php |
||
16 | class SQLLoggerCollector implements CollectorInterface, AutoHideInterface |
||
17 | { |
||
18 | /** |
||
19 | * Collector priority |
||
20 | */ |
||
21 | public const PRIORITY = 10; |
||
22 | |||
23 | /** @var DebugStack */ |
||
24 | protected $sqlLogger; |
||
25 | |||
26 | /** @var string */ |
||
27 | protected $name; |
||
28 | |||
29 | 11 | public function __construct(DebugStack $sqlLogger, string $name) |
|
34 | |||
35 | /** |
||
36 | * {@inheritDoc} |
||
37 | */ |
||
38 | 2 | public function getName() |
|
42 | |||
43 | /** |
||
44 | * {@inheritDoc} |
||
45 | */ |
||
46 | 1 | public function getPriority() |
|
50 | |||
51 | /** |
||
52 | * {@inheritDoc} |
||
53 | */ |
||
54 | 1 | public function collect(MvcEvent $mvcEvent) |
|
57 | |||
58 | /** |
||
59 | * {@inheritDoc} |
||
60 | */ |
||
61 | 1 | public function canHide() |
|
65 | |||
66 | 1 | public function getQueryCount() : int |
|
70 | |||
71 | /** |
||
72 | * @return mixed[] |
||
73 | */ |
||
74 | public function getQueries() : array |
||
78 | |||
79 | 1 | public function getQueryTime() : float |
|
89 | } |
||
90 |