Total Complexity | 4 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | class TypeArray extends AbstractRule |
||
17 | { |
||
18 | /** |
||
19 | * {@inheritDoc} |
||
20 | */ |
||
21 | protected const NAME = 'array'; |
||
22 | |||
23 | /** |
||
24 | * {@inheritDoc} |
||
25 | */ |
||
26 | public function fillParameters(array $params): Rule |
||
27 | { |
||
28 | 6 | return $this->fillAllowedParameters($params, 'allowed_keys'); |
|
29 | } |
||
30 | |||
31 | /** |
||
32 | * {@inheritDoc} |
||
33 | */ |
||
34 | public function check($value): bool |
||
45 | } |
||
46 | } |
||
47 |