| Total Complexity | 9 |
| Total Lines | 62 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class Inspector implements Policy |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var Policy[] |
||
| 20 | */ |
||
| 21 | private $policies = []; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param Policy ...$policies |
||
| 25 | */ |
||
| 26 | public function join(Policy ...$policies) : void |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param string $uri |
||
| 33 | * @return bool |
||
| 34 | */ |
||
| 35 | public function allowed(string $uri) : bool |
||
| 36 | { |
||
| 37 | return true; |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @param Context $ctx |
||
| 42 | * @param ServerRequest $sr |
||
| 43 | * @param int $route |
||
| 44 | * @param callable $handler |
||
| 45 | * @param array $params |
||
| 46 | * @return Response|null |
||
| 47 | */ |
||
| 48 | public function request( |
||
| 63 | } |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @param ServerRequest $sr |
||
| 67 | * @param Response $respond |
||
| 68 | * @return Response |
||
| 69 | */ |
||
| 70 | public function response(ServerRequest $sr, Response $respond) : Response |
||
| 78 | } |
||
| 79 | } |
||
| 80 |