| 1 | <?php |
||
| 30 | trait ProfilerAwareTrait |
||
| 31 | { |
||
| 32 | /** |
||
| 33 | * the profiler |
||
| 34 | * |
||
| 35 | * @var ProfilerInterface |
||
| 36 | * @access protected |
||
| 37 | */ |
||
| 38 | protected $profiler; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @var bool |
||
| 42 | * @access protected |
||
| 43 | */ |
||
| 44 | protected $profiling_enabled = false; |
||
| 45 | |||
| 46 | /** |
||
| 47 | * {@inheritDoc} |
||
| 48 | */ |
||
| 49 | public function isProfiling()/*# : bool */ |
||
| 53 | |||
| 54 | /** |
||
| 55 | * {@inheritDoc} |
||
| 56 | */ |
||
| 57 | public function enableProfiling(/*# bool */ $flag = true) |
||
| 62 | |||
| 63 | /** |
||
| 64 | * {@inheritDoc} |
||
| 65 | */ |
||
| 66 | public function setProfiler(ProfilerInterface $profiler) |
||
| 72 | |||
| 73 | /** |
||
| 74 | * {@inheritDoc} |
||
| 75 | */ |
||
| 76 | public function getProfiler()/*# : ProfilerInterface */ |
||
| 83 | } |
||
| 84 |