Total Complexity | 6 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | #[Attribute(Attribute::TARGET_PROPERTY)] |
||
11 | class CountAtMost extends AbstractRule |
||
12 | { |
||
13 | const MESSAGE = 'Expected count is at most: %s'; |
||
14 | |||
15 | public function __construct(private int $count, string $message = null) |
||
18 | } |
||
19 | |||
20 | public function isValid($input, array $context = []): bool |
||
41 |