Total Complexity | 9 |
Total Lines | 78 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | trait TStatementProfiler |
||
15 | { |
||
16 | |||
17 | /** |
||
18 | * Turns the profiler on and off. |
||
19 | * |
||
20 | * @param boolean $active True to turn on, false to turn off. |
||
21 | * |
||
22 | * @return void |
||
23 | */ |
||
24 | 37 | public function setActive($active) |
|
25 | { |
||
26 | 37 | $this->active = (bool)$active; |
|
|
|||
27 | 37 | } |
|
28 | |||
29 | /** |
||
30 | * Is the profiler active? |
||
31 | * |
||
32 | * @return boolean |
||
33 | */ |
||
34 | 31 | public function isActive() |
|
35 | { |
||
36 | 31 | return (bool)$this->active; |
|
37 | } |
||
38 | |||
39 | /** |
||
40 | * @inheritDoc |
||
41 | */ |
||
42 | 1 | public function getLogger() |
|
43 | { |
||
44 | 1 | return $this->logger; |
|
45 | } |
||
46 | |||
47 | /** |
||
48 | * @inheritDoc |
||
49 | */ |
||
50 | 1 | public function getLogLevel() |
|
51 | { |
||
52 | 1 | return $this->logLevel; |
|
53 | } |
||
54 | |||
55 | /** |
||
56 | * @inheritDoc |
||
57 | */ |
||
58 | 1 | public function setLogLevel($logLevel) |
|
59 | { |
||
60 | 1 | $this->logLevel = $logLevel; |
|
61 | 1 | } |
|
62 | |||
63 | /** |
||
64 | * @inheritDoc |
||
65 | */ |
||
66 | 1 | public function getLogFormat() |
|
67 | { |
||
68 | 1 | return $this->logFormat; |
|
69 | } |
||
70 | |||
71 | /** |
||
72 | * @inheritDoc |
||
73 | */ |
||
74 | 1 | public function setLogFormat($logFormat) |
|
77 | 1 | } |
|
78 | |||
79 | /** |
||
80 | * @inheritDoc |
||
81 | */ |
||
82 | 17 | public function start($function) |
|
84 | |||
85 | 17 | } |
|
86 | |||
87 | /** |
||
88 | * @inheritDoc |
||
89 | */ |
||
90 | 17 | public function finish($statement = null, array $values = []) |
|
92 | |||
93 | 17 | } |
|
96 |