Total Complexity | 2 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
15 | class Response implements ResponseInterface |
||
16 | { |
||
17 | /** |
||
18 | * @codeCoverageIgnore |
||
19 | * @param array $data |
||
20 | */ |
||
21 | public function jsonResponse(array $data): void |
||
22 | { |
||
23 | header('Content-Type: application/json'); |
||
24 | print $this->getJson($data); |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * @param array $data |
||
29 | * @return string |
||
30 | */ |
||
31 | private function getJson(array $data): string |
||
34 | } |
||
35 | } |
||
36 |