Lines 25.00% 1 / 4
Methods 25.00% 1 / 4
Classes 0.00% 0 / 1
Name Lines Methods CRAP
 disable 0.00% 0 / 1 0.00% 0 / 1 2
 rest 0.00% 0 / 1 0.00% 0 / 1 2
 error 100.00% 1 / 1 100.00% 1 / 1 1
 fallback 0.00% 0 / 1 0.00% 0 / 1 2
17class Route
18{
19
20    public static function disable(string $route) : void
21    {
22        Application::getInstance()->httpRouter->disable($route);
23    }
24
25    public static function rest() : RestRouteBuilder
26    {
27        return new RestRouteBuilder(Application::getInstance()->httpRouter);
28    }
29
30    public static function error(int $code, ResponseInterface $response) : void
31    {
32        Application::getInstance()->registerErrorTemplate($code,$response);
33    }
34
35    public static function fallback(ResponseInterface $response) : void
36    {
37        Application::getInstance()->registerFallback($response);
38    }
39
40}