1 | <?php |
||
14 | class Manager |
||
15 | { |
||
16 | |||
17 | public $bar; |
||
18 | public $render; |
||
19 | |||
20 | /** |
||
21 | * Manager constructor. Construct debug manager - build debug bar, javascripts and initialize configs |
||
22 | */ |
||
23 | public function __construct() |
||
30 | |||
31 | /** |
||
32 | * Render debug bar header |
||
33 | * @return string |
||
34 | */ |
||
35 | public function renderHead() |
||
39 | |||
40 | /** |
||
41 | * Render debug bar code |
||
42 | * @return string |
||
43 | * @throws \DebugBar\DebugBarException |
||
44 | */ |
||
45 | public function renderOut() |
||
58 | |||
59 | /** |
||
60 | * Add exception into debug bar and stop execute |
||
61 | * @param $e |
||
62 | * @throws \DebugBar\DebugBarException |
||
63 | */ |
||
64 | public function addException($e) |
||
70 | |||
71 | /** |
||
72 | * Add message into debug bar |
||
73 | * @param string $m |
||
74 | * @param string $type |
||
75 | * @throws \DebugBar\DebugBarException |
||
76 | */ |
||
77 | public function addMessage($m, $type = 'info') |
||
89 | |||
90 | /** |
||
91 | * Add message debug data to bar |
||
92 | * @param $data |
||
93 | * @throws \DebugBar\DebugBarException |
||
94 | */ |
||
95 | public function vardump($data) |
||
99 | |||
100 | /** |
||
101 | * Start timeline measure |
||
102 | * @param string $key |
||
103 | */ |
||
104 | public function startMeasure(string $key): void |
||
108 | |||
109 | /** |
||
110 | * Stop timeline measure |
||
111 | * @param string $key |
||
112 | */ |
||
113 | public function stopMeasure(string $key): void |
||
117 | |||
118 | /** |
||
119 | * Check if debug bar is enabled. Method called before __construct() is initiated!! |
||
120 | * @return bool |
||
121 | */ |
||
122 | public static function isEnabled() |
||
128 | } |
If a method or function can return multiple different values and unless you are sure that you only can receive a single value in this context, we recommend to add an additional type check:
If this a common case that PHP Analyzer should handle natively, please let us know by opening an issue.