Lines 100.00% 5 / 5
Functions and Methods 100.00% 1 / 1
Classes and Traits 100.00% 1 / 1
Name Lines Functions and Methods CRAP Classes and Traits
ScopeAvailabilityDayConflicts 100.00% 5 / 5 100.00% 1 / 1 1 100.00% 1 / 1
 readResponse 100.00% 5 / 5 100.00% 1 / 1 1
1<?php
2
3/**
4 * @package Zmsadmin
5 * @copyright BerlinOnline Stadtportal GmbH & Co. KG
6 **/
7
8namespace BO\Zmsadmin;
9
10use BO\Slim\Render;
11
12class ScopeAvailabilityDayConflicts extends ScopeAvailabilityDay
13{
14    /**
15     * @SuppressWarnings(Param)
16     * @return \Psr\Http\Message\ResponseInterface
17     */
18    #[\Override]
19    public function readResponse(
20        \Psr\Http\Message\RequestInterface $request,
21        \Psr\Http\Message\ResponseInterface $response,
22        array $args
23    ): \Psr\Http\Message\ResponseInterface {
24        $data = static::getAvailabilityData($args['id'], $args['date']);
25        return Render::withJson(
26            $response,
27            $data
28        );
29    }
30}