Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
13 / 13
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
WarehouseIndex
100.00% covered (success)
100.00%
13 / 13
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 readResponse
100.00% covered (success)
100.00%
13 / 13
100.00% covered (success)
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    public function readResponse(
21        RequestInterface $request,
22        ResponseInterface $response,
23        array $args
24    ) {
25        $warehouse = \App::$http->readGetResult('/warehouse/')
26          ->getEntity()
27          ->toHashed();
28
29        return Render::withHtml(
30            $response,
31            'page/warehouseIndex.twig',
32            array(
33                'title' => 'Kategorie auswählen',
34                'menuActive' => 'warehouse',
35                'warehouse' => $warehouse,
36                'workstation' => $this->workstation->getArrayCopy()
37            )
38        );
39    }
40}