Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
3 / 3 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| AvailabilityDelete | |
100.00% |
3 / 3 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| readResponse | |
100.00% |
3 / 3 |
|
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 | use BO\Zmsentities\Availability; |
| 11 | use BO\Zmsentities\Collection\AvailabilityList; |
| 12 | use BO\Mellon\Validator; |
| 13 | |
| 14 | /** |
| 15 | * Delete availability, API proxy |
| 16 | * |
| 17 | */ |
| 18 | class AvailabilityDelete extends BaseController |
| 19 | { |
| 20 | /** |
| 21 | * @SuppressWarnings(UnusedFormalParameter) |
| 22 | * @return \Psr\Http\Message\ResponseInterface |
| 23 | */ |
| 24 | public function readResponse( |
| 25 | \Psr\Http\Message\RequestInterface $request, |
| 26 | \Psr\Http\Message\ResponseInterface $response, |
| 27 | array $args |
| 28 | ) { |
| 29 | $entityId = Validator::value($args['id'])->isNumber()->getValue(); |
| 30 | $result = \App::$http->readDeleteResult('/availability/' . $entityId . '/'); |
| 31 | return $result->getResponse(); |
| 32 | } |
| 33 | } |