| Total Complexity | 4 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | final class IndexController |
||
| 13 | { |
||
| 14 | private DataResponseFactoryInterface $responseFactory; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * IndexController constructor. |
||
| 18 | */ |
||
| 19 | public function __construct( |
||
| 20 | DataResponseFactoryInterface $responseFactory |
||
| 21 | ) { |
||
| 22 | $this->responseFactory = $responseFactory; |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @return ResponseInterface |
||
| 27 | */ |
||
| 28 | public function index(): ResponseInterface |
||
| 31 | } |
||
| 32 | |||
| 33 | public function panel(CurrentRoute $currentRoute, PanelCollection $panelCollection): ResponseInterface |
||
| 34 | { |
||
| 35 | $panel = $panelCollection->getPanel($currentRoute->getArgument('panel')); |
||
|
|
|||
| 36 | return $this->responseFactory->createResponse($panel->renderDetail()); |
||
| 37 | } |
||
| 38 | |||
| 39 | public function toolbar(ServerRequestInterface $request) |
||
| 42 | } |
||
| 43 | } |
||
| 44 |