Total Complexity | 4 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | class Response extends \Symfony\Component\HttpFoundation\Response |
||
19 | { |
||
20 | /** |
||
21 | * Redirect to url. |
||
22 | */ |
||
23 | public function redirect(string $url): RedirectResponse |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * Return json response. |
||
30 | * |
||
31 | * @param string|array<mixed> $data |
||
32 | * @param array<mixed> $headers |
||
33 | */ |
||
34 | public function json(string|array $data, array $headers = []): Response |
||
48 |