| Total Complexity | 5 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class ACFMiddleware extends BaseAccessControlMiddleware |
||
| 11 | { |
||
| 12 | public string $level_field; |
||
| 13 | |||
| 14 | protected function handle(mixed ...$middlewareParams): HttpResponse|Request |
||
| 15 | { |
||
| 16 | $this->level_field = $middlewareParams["level_field"] ?? "level"; |
||
| 17 | |||
| 18 | return parent::handle(...$middlewareParams); |
||
| 19 | } |
||
| 20 | |||
| 21 | |||
| 22 | protected function checkPermissions(string $modifier, mixed ...$params): bool |
||
| 42 | } |
||
| 43 | } |
||
| 44 |