Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
9 / 9
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
Status
100.00% covered (success)
100.00%
9 / 9
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 readResponse
100.00% covered (success)
100.00%
9 / 9
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3/**
4 *
5 * @copyright BerlinOnline Stadtportal GmbH & Co. KG
6 *
7 */
8
9namespace BO\Zmsstatistic;
10
11use BO\Slim\Render;
12use Psr\Http\Message\RequestInterface;
13use Psr\Http\Message\ResponseInterface;
14
15/**
16 * Handle requests concerning services
17 */
18class Status extends BaseController
19{
20    protected $withAccess = false;
21
22    //protected $resolveLevel = 3;
23
24    /**
25     * @SuppressWarnings(UnusedFormalParameter)
26     * @return ResponseInterface
27     */
28    public function readResponse(
29        RequestInterface $request,
30        ResponseInterface $response,
31        array $args
32    ) {
33        $result = \App::$http->readGetResult('/status/');
34        return Render::withHtml(
35            $response,
36            'page/status.twig',
37            array(
38                'title' => 'Status der Terminvereinbarung',
39                //'workstation' => $this->workstation->getArrayCopy(),
40                'status' => $result->getEntity(),
41            )
42        );
43    }
44}