endpoint = $endpoint; $this->request_method = $request_method; $this->request_data = $request_data; $this->endpoint_reflection = new ReflectionClass($endpoint); } function getTab() { $img = ''; return $img . '' . $this->getEndpointName() . ''; } function getPanel() { ob_start(); require __DIR__ . '/api-panel.phtml'; return ob_get_clean(); } static function init($endpoint, $request_method, $request_data) { Debugger::getBar()->addPanel(new static($endpoint, $request_method, $request_data)); } private function getEndpointName() { return $this->endpoint_reflection->getShortName() . '::' . $this->request_method . '()'; } }