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
Status
100.00% covered (success)
100.00%
13 / 13
100.00% covered (success)
100.00%
1 / 1
2
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
2
1<?php
2
3/**
4 *
5 * @copyright BerlinOnline Stadtportal GmbH & Co. KG
6 *
7 */
8
9namespace BO\Zmsadmin;
10
11/**
12 * Handle requests concerning services
13 */
14class Status extends BaseController
15{
16    /**
17     * @SuppressWarnings(UnusedFormalParameter)
18     * @return \Psr\Http\Message\ResponseInterface
19     */
20    #[\Override]
21    public function readResponse(
22        \Psr\Http\Message\RequestInterface $request,
23        \Psr\Http\Message\ResponseInterface $response,
24        array $args
25    ): \Psr\Http\Message\ResponseInterface {
26        try {
27            $workstation = \App::$http->readGetResult('/workstation/')->getEntity();
28        } catch (\Exception $workstationexception) {
29            $workstation = null;
30        }
31        $result = \App::$http->readGetResult('/status/');
32        return \BO\Slim\Render::withHtml(
33            $response,
34            'page/status.twig',
35            array(
36                'title' => 'Status der Terminvereinbarung',
37                'status' => $result->getEntity(),
38                'workstation' => $workstation
39            )
40        );
41    }
42}