1 | <?php |
||
23 | class DrawPanel extends AbstractPanel implements |
||
24 | PanelInterface, |
||
25 | PanelInitInterface |
||
26 | { |
||
27 | /** |
||
28 | * Profiler bar panel id |
||
29 | */ |
||
30 | const ID = 'WebinoDraw:draw'; |
||
31 | |||
32 | /** |
||
33 | * {@inheritdoc} |
||
34 | */ |
||
35 | protected $dir = __DIR__; |
||
36 | |||
37 | /** |
||
38 | * @var DrawProfiler |
||
39 | */ |
||
40 | private $profiler; |
||
41 | |||
42 | /** |
||
43 | * @var string |
||
44 | */ |
||
45 | protected $title = 'WebinoDraw profiler'; |
||
46 | |||
47 | /** |
||
48 | * @param ServiceManager $services |
||
49 | */ |
||
50 | public function init(ServiceManager $services) |
||
54 | |||
55 | /** |
||
56 | * @return DrawProfiler |
||
57 | * @throws Exception\LogicException |
||
58 | */ |
||
59 | protected function getProfiler() |
||
66 | |||
67 | /** |
||
68 | * @param object|DrawProfiler $profiler |
||
69 | * @return $this |
||
70 | */ |
||
71 | public function setProfiler(DrawProfiler $profiler) |
||
76 | |||
77 | /** |
||
78 | * @param $var mixed |
||
79 | * @return string |
||
80 | */ |
||
81 | public function dump($var) : string |
||
88 | |||
89 | /** |
||
90 | * {@inheritdoc} |
||
91 | */ |
||
92 | public function getTab() |
||
100 | |||
101 | /** |
||
102 | * {@inheritdoc} |
||
103 | */ |
||
104 | public function getPanel() |
||
108 | } |
||
109 |