Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
10 / 10 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
Dayoff | |
100.00% |
10 / 10 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
readResponse | |
100.00% |
10 / 10 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | /** |
4 | * @package Zmsadmin |
5 | * @copyright BerlinOnline Stadtportal GmbH & Co. KG |
6 | **/ |
7 | |
8 | namespace BO\Zmsadmin; |
9 | |
10 | class Dayoff extends BaseController |
11 | { |
12 | /** |
13 | * @SuppressWarnings(Param) |
14 | * @return String |
15 | */ |
16 | public function readResponse( |
17 | \Psr\Http\Message\RequestInterface $request, |
18 | \Psr\Http\Message\ResponseInterface $response, |
19 | array $args |
20 | ) { |
21 | $workstation = \App::$http->readGetResult('/workstation/', ['resolveReferences' => 1])->getEntity(); |
22 | return \BO\Slim\Render::withHtml( |
23 | $response, |
24 | 'page/dayoff.twig', |
25 | array( |
26 | 'title' => 'Allgemein gültige Feiertage - Jahresauswahl', |
27 | 'workstation' => $workstation, |
28 | 'menuActive' => 'dayoff' |
29 | ) |
30 | ); |
31 | } |
32 | } |