| Total Complexity | 5 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | final class AccessChecker implements MiddlewareInterface |
||
| 16 | { |
||
| 17 | private ?string $permission = null; |
||
| 18 | |||
| 19 | public function __construct( |
||
| 23 | } |
||
| 24 | |||
| 25 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
||
| 36 | } |
||
| 37 | |||
| 38 | public function withPermission(string $permission): self |
||
| 45 |