| Total Complexity | 12 |
| Total Lines | 49 |
| Duplicated Lines | 0 % |
| Coverage | 77.78% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | class Enum extends AbstractRule |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @param string $type Type de l'enumeration |
||
| 21 | */ |
||
| 22 | public function __construct(protected string $type = '') |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * {@inheritDoc} |
||
| 29 | */ |
||
| 30 | public function fillParameters(array $params): Rule |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Modifie le type de l'enumeration |
||
| 41 | */ |
||
| 42 | public function type(string $type): self |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * {@inheritDoc} |
||
| 51 | */ |
||
| 52 | public function check($value): bool |
||
| 69 |