Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
12 / 12 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
PickupKeyboard | |
100.00% |
12 / 12 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
readResponse | |
100.00% |
12 / 12 |
|
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 PickupKeyboard 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' => 2])->getEntity(); |
22 | $department = \App::$http->readGetResult('/scope/' . $workstation->scope['id'] . '/department/')->getEntity(); |
23 | |
24 | return \BO\Slim\Render::withHtml( |
25 | $response, |
26 | 'page/pickupKeyboard.twig', |
27 | array( |
28 | 'title' => 'Abholer verwalten', |
29 | 'menuActive' => 'pickup', |
30 | 'workstation' => $workstation->getArrayCopy(), |
31 | 'department' => $department |
32 | ) |
33 | ); |
34 | } |
35 | } |