|
20 | 20 | class StatementProfiler implements ProfilerInterface |
21 | 21 | { |
22 | 22 |
|
| 23 | + use TStatementProfiler; |
| 24 | + |
23 | 25 | /** |
24 | 26 | * Is the profiler active? |
25 | 27 | * |
@@ -126,28 +128,6 @@ public function ignoreDuplicateStatement($statement) |
126 | 128 | $this->ignoredDuplicateStatements[] = $this->normalizeStatement($statement); |
127 | 129 | } |
128 | 130 |
|
129 | | - /** |
130 | | - * Turns the profiler on and off. |
131 | | - * |
132 | | - * @param boolean $active True to turn on, false to turn off. |
133 | | - * |
134 | | - * @return void |
135 | | - */ |
136 | | - public function setActive($active) |
137 | | - { |
138 | | - $this->active = (bool)$active; |
139 | | - } |
140 | | - |
141 | | - /** |
142 | | - * Is the profiler active? |
143 | | - * |
144 | | - * @return boolean |
145 | | - */ |
146 | | - public function isActive() |
147 | | - { |
148 | | - return (bool)$this->active; |
149 | | - } |
150 | | - |
151 | 131 | /** |
152 | 132 | * Toggle duplicate statement tracker. |
153 | 133 | * |
@@ -308,60 +288,4 @@ public function resetProfiles() |
308 | 288 | $this->profiles = array(); |
309 | 289 | } |
310 | 290 |
|
311 | | - /** |
312 | | - * @inheritDoc |
313 | | - */ |
314 | | - public function getLogger() |
315 | | - { |
316 | | - return $this->logger; |
317 | | - } |
318 | | - |
319 | | - /** |
320 | | - * @inheritDoc |
321 | | - */ |
322 | | - public function getLogLevel() |
323 | | - { |
324 | | - return $this->logLevel; |
325 | | - } |
326 | | - |
327 | | - /** |
328 | | - * @inheritDoc |
329 | | - */ |
330 | | - public function setLogLevel($logLevel) |
331 | | - { |
332 | | - $this->logLevel = $logLevel; |
333 | | - } |
334 | | - |
335 | | - /** |
336 | | - * @inheritDoc |
337 | | - */ |
338 | | - public function getLogFormat() |
339 | | - { |
340 | | - return $this->logFormat; |
341 | | - } |
342 | | - |
343 | | - /** |
344 | | - * @inheritDoc |
345 | | - */ |
346 | | - public function setLogFormat($logFormat) |
347 | | - { |
348 | | - $this->logFormat = $logFormat; |
349 | | - } |
350 | | - |
351 | | - /** |
352 | | - * @inheritDoc |
353 | | - */ |
354 | | - public function start($function) |
355 | | - { |
356 | | - |
357 | | - } |
358 | | - |
359 | | - /** |
360 | | - * @inheritDoc |
361 | | - */ |
362 | | - public function finish($statement = null, array $values = []) |
363 | | - { |
364 | | - |
365 | | - } |
366 | | - |
367 | 291 | } |
0 commit comments