1 | <?php |
||
36 | class SQLLoggerCollector implements CollectorInterface, AutoHideInterface |
||
37 | { |
||
38 | /** |
||
39 | * Collector priority |
||
40 | */ |
||
41 | const PRIORITY = 10; |
||
42 | |||
43 | /** |
||
44 | * @var DebugStack |
||
45 | */ |
||
46 | protected $sqlLogger; |
||
47 | |||
48 | /** |
||
49 | * @var string |
||
50 | */ |
||
51 | protected $name; |
||
52 | |||
53 | /** |
||
54 | * @param DebugStack $sqlLogger |
||
55 | * @param string $name |
||
56 | */ |
||
57 | 11 | public function __construct(DebugStack $sqlLogger, $name) |
|
62 | |||
63 | /** |
||
64 | * {@inheritDoc} |
||
65 | */ |
||
66 | 2 | public function getName() |
|
70 | |||
71 | /** |
||
72 | * {@inheritDoc} |
||
73 | */ |
||
74 | 1 | public function getPriority() |
|
78 | |||
79 | /** |
||
80 | * {@inheritDoc} |
||
81 | */ |
||
82 | 1 | public function collect(MvcEvent $mvcEvent) |
|
85 | |||
86 | /** |
||
87 | * {@inheritDoc} |
||
88 | */ |
||
89 | 1 | public function canHide() |
|
93 | |||
94 | /** |
||
95 | * @return int |
||
96 | */ |
||
97 | 1 | public function getQueryCount() |
|
101 | |||
102 | /** |
||
103 | * @return array |
||
104 | */ |
||
105 | public function getQueries() |
||
109 | |||
110 | /** |
||
111 | * @return float |
||
112 | */ |
||
113 | 1 | public function getQueryTime() |
|
123 | } |
||
124 |