Lines 100.00% 14 / 14
Functions and Methods 100.00% 1 / 1
Classes and Traits 100.00% 1 / 1
Name Lines Functions and Methods CRAP Classes and Traits
WarehouseIndex 100.00% 14 / 14 100.00% 1 / 1 1 100.00% 1 / 1
 readResponse 100.00% 14 / 14 100.00% 1 / 1 1
1<?php
2
3/**
4 * @package Zmsadmin
5 * @copyright BerlinOnline Stadtportal GmbH & Co. KG
6 **/
7
8namespace BO\Zmsstatistic;
9
10use BO\Slim\Render;
11use Psr\Http\Message\RequestInterface;
12use Psr\Http\Message\ResponseInterface;
13
14class WarehouseIndex extends BaseController
15{
16    /**
17     * @SuppressWarnings(Param)
18     * @return ResponseInterface
19     */
20    #[\Override]
21    public function readResponse(
22        RequestInterface $request,
23        ResponseInterface $response,
24        array $args
25    ): mixed {
26        /** @var mixed $warehouse */
27        $warehouse = \App::http()->readGetResult('/warehouse/')
28          ->getEntity();
29        $warehouse = $warehouse
30          ->toHashed();
31
32        return Render::withHtml(
33            $response,
34            'page/warehouseIndex.twig',
35            array(
36                'title' => 'Kategorie auswählen',
37                'menuActive' => 'warehouse',
38                'warehouse' => $warehouse,
39                'workstation' => $this->workstation->getArrayCopy()
40            )
41        );
42    }
43}