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