Total Complexity | 2 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | class JsonApiResponse |
||
10 | { |
||
11 | |||
12 | /** |
||
13 | * Prepares Response object to return with particular http response, headers and body |
||
14 | * |
||
15 | * @param string $json |
||
16 | * @param int $responseCode |
||
17 | * @return Response |
||
18 | */ |
||
19 | public function getResponse(string $json, int $responseCode = JSONApiInterface::HTTP_RESPONSE_CODE_OK) : Response |
||
28 | } |
||
29 | } |