Total Complexity | 4 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
19 | abstract class RequestHandler implements RequestHandlerInterface |
||
20 | { |
||
21 | public string $responseBuilder; |
||
22 | |||
23 | 64 | public function peekPath() |
|
24 | { |
||
25 | 64 | return App::$App->Path->peekPath(); |
|
26 | } |
||
27 | |||
28 | 66 | public function shiftPath() |
|
29 | { |
||
30 | 66 | return App::$App->Path->shiftPath(); |
|
31 | } |
||
32 | |||
33 | 1 | public function unshiftPath($string) |
|
34 | { |
||
35 | 1 | return App::$App->Path->unshiftPath($string); |
|
36 | } |
||
37 | |||
38 | 55 | public function respond($responseID, $responseData = []): ResponseInterface |
|
42 | } |
||
43 | |||
44 | abstract public function handle(ServerRequestInterface $request): ResponseInterface; |
||
45 | } |
||
46 |