Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
24 / 24 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
Overview | |
100.00% |
24 / 24 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
readResponse | |
100.00% |
24 / 24 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | /** |
4 | * @package Zmsadmin |
5 | * @copyright BerlinOnline Stadtportal GmbH & Co. KG |
6 | **/ |
7 | |
8 | namespace BO\Zmsstatistic; |
9 | |
10 | use BO\Slim\Render; |
11 | use Psr\Http\Message\RequestInterface; |
12 | use Psr\Http\Message\ResponseInterface; |
13 | |
14 | class Overview extends BaseController |
15 | { |
16 | protected $resolveLevel = 3; |
17 | |
18 | /** |
19 | * @SuppressWarnings(Param) |
20 | * @return ResponseInterface |
21 | */ |
22 | public function readResponse( |
23 | RequestInterface $request, |
24 | ResponseInterface $response, |
25 | array $args |
26 | ) { |
27 | $waitingperiod = \App::$http |
28 | ->readGetResult('/warehouse/waitingscope/' . $this->workstation->scope['id'] . '/') |
29 | ->getEntity(); |
30 | $clientperiod = \App::$http |
31 | ->readGetResult('/warehouse/clientscope/' . $this->workstation->scope['id'] . '/') |
32 | ->getEntity(); |
33 | $requestperiod = \App::$http |
34 | ->readGetResult('/warehouse/requestscope/' . $this->workstation->scope['id'] . '/') |
35 | ->getEntity(); |
36 | |
37 | return Render::withHtml( |
38 | $response, |
39 | 'page/overview.twig', |
40 | array( |
41 | 'title' => 'Statistik', |
42 | 'workstation' => $this->workstation->getArrayCopy(), |
43 | 'department' => $this->department, |
44 | 'organisation' => $this->organisation, |
45 | 'waitingperiod' => $waitingperiod, |
46 | 'clientperiod' => $clientperiod, |
47 | 'requestperiod' => $requestperiod, |
48 | 'scopeId' => $this->workstation->scope['id'], |
49 | 'showAll' => 0 |
50 | ) |
51 | ); |
52 | } |
53 | } |