1 | <?php |
||
31 | class Profiler extends ObjectAbstract implements ProfilerInterface |
||
32 | { |
||
33 | use DriverAwareTrait; |
||
34 | |||
35 | /** |
||
36 | * Current executed SQL |
||
37 | * |
||
38 | * @var string |
||
39 | * @access protected |
||
40 | */ |
||
41 | protected $sql = ''; |
||
42 | |||
43 | /** |
||
44 | * Parameters cache |
||
45 | * |
||
46 | * @var array |
||
47 | * @access protected |
||
48 | */ |
||
49 | protected $params = []; |
||
50 | |||
51 | /** |
||
52 | * Execution time |
||
53 | * |
||
54 | * @var float |
||
55 | * @access protected |
||
56 | */ |
||
57 | protected $execution_time = 0.0; |
||
58 | |||
59 | /** |
||
60 | * {@inheritDoc} |
||
61 | */ |
||
62 | public function setSql(/*# string */ $sql) |
||
71 | |||
72 | /** |
||
73 | * {@inheritDoc} |
||
74 | */ |
||
75 | public function setParameters(array $parameters) |
||
80 | |||
81 | /** |
||
82 | * {@inheritDoc} |
||
83 | */ |
||
84 | public function getSql()/*# : string */ |
||
88 | |||
89 | /** |
||
90 | * {@inheritDoc} |
||
91 | */ |
||
92 | public function setExecutionTime(/*# float */ $time) |
||
97 | |||
98 | /** |
||
99 | * {@inheritDoc} |
||
100 | */ |
||
101 | public function getExecutionTime()/*# : float */ |
||
105 | |||
106 | /** |
||
107 | * Replace params in the SQL |
||
108 | * |
||
109 | * @return string |
||
110 | * @access protected |
||
111 | */ |
||
112 | protected function replaceParamInSql()/*# : string */ |
||
127 | } |
||
128 |