Total Complexity | 6 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | #[Attribute(Attribute::TARGET_PROPERTY|Attribute::TARGET_METHOD)] |
||
11 | class IsEmpty extends AbstractRule |
||
12 | { |
||
13 | const MESSAGE = 'This value must be empty'; |
||
14 | |||
15 | public function __construct( |
||
16 | ?string $message = self::MESSAGE, |
||
17 | int $stopOnFailure = StopSign::DONT_STOP |
||
18 | ) { |
||
19 | parent::__construct($message, $stopOnFailure); |
||
20 | } |
||
21 | |||
22 | public function isValid($input, array $context = []): bool |
||
33 | } |
||
34 | } |
||
35 |