1 | <?php |
||
32 | class DatabaseDataCollector extends DataCollector |
||
33 | { |
||
34 | /** @var Stopwatch */ |
||
35 | private $stopwatch; |
||
36 | |||
37 | /** @var array */ |
||
38 | private $data; |
||
39 | |||
40 | public function __construct($unused = null, Stopwatch $stopwatch = null) |
||
49 | |||
50 | /** |
||
51 | * @param string $name |
||
52 | * @param array $data |
||
53 | * @param $session |
||
54 | * |
||
55 | * @return null |
||
56 | */ |
||
57 | public function execute($name, $data, Session $session) |
||
71 | |||
72 | private function watch($name) |
||
85 | |||
86 | /** |
||
87 | * {@inheritdoc} |
||
88 | */ |
||
89 | public function collect(Request $request, Response $response, \Exception $exception = null) |
||
95 | |||
96 | /** |
||
97 | * Return the list of queries sent. |
||
98 | * |
||
99 | * @return array |
||
100 | */ |
||
101 | public function getQueries() |
||
105 | |||
106 | /** |
||
107 | * Return the number of queries sent. |
||
108 | * |
||
109 | * @return integer |
||
110 | */ |
||
111 | public function getQuerycount() |
||
115 | |||
116 | /** |
||
117 | * Return queries total time. |
||
118 | * |
||
119 | * @return float |
||
120 | */ |
||
121 | public function getTime() |
||
125 | |||
126 | /** |
||
127 | * Return sql exception. |
||
128 | * |
||
129 | * @return \PommProject\Foundation\Exception\SqlException|null |
||
130 | */ |
||
131 | public function getException() |
||
135 | |||
136 | /** |
||
137 | * Return profiler identifier. |
||
138 | * |
||
139 | * @return string |
||
140 | */ |
||
141 | public function getName() |
||
145 | |||
146 | /** |
||
147 | * {@inheritdoc} |
||
148 | */ |
||
149 | public function reset() |
||
154 | |||
155 | /** |
||
156 | * Get initial data array |
||
157 | */ |
||
158 | private function getInitData() |
||
166 | } |
||
167 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.