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    /**
23     * @SuppressWarnings(UnusedFormalParameter)
24     * @return ResponseInterface
25     */
26    public function readResponse(
27        RequestInterface $request,
28        ResponseInterface $response,
29        array $args
30    ) {
31        $result = \App::$http->readGetResult('/status/');
32        return Render::withHtml(
33            $response,
34            'page/status.twig',
35            array(
36                'title' => 'Status der Terminvereinbarung',
37                //'workstation' => $this->workstation->getArrayCopy(),
38                'status' => $result->getEntity(),
39            )
40        );
41    }
42}