| Total Complexity | 2 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | #[Attribute(Attribute::TARGET_PROPERTY)] |
||
| 11 | class NotEmptyString extends AbstractRule |
||
| 12 | { |
||
| 13 | const MESSAGE = 'This value cannot be left blank'; |
||
| 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 |
||
| 25 | } |
||
| 26 | } |
||
| 27 |