Total Complexity | 3 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | abstract class AbstractHandler |
||
9 | { |
||
10 | abstract protected function handle(BaseMatch $matcher) : HttpResponse; |
||
11 | abstract protected function resolveRequest() : BaseMatch; |
||
12 | |||
13 | |||
14 | protected Request $request; |
||
15 | protected $middlewares = array(); |
||
16 | |||
17 | public function __construct($request){ |
||
19 | } |
||
20 | |||
21 | public function addMiddlewares($middlewares) { |
||
22 | $this->middlewares = $middlewares; |
||
23 | } |
||
24 | |||
25 | |||
26 | public function getResponse() : HttpResponse{ |
||
29 | |||
30 | } |
||
36 |