| Total Complexity | 2 | 
| Total Lines | 22 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 16 | #[Attribute(Attribute::TARGET_PROPERTY)] | ||
| 17 | final class Required implements RuleInterface | ||
| 18 | { | ||
| 19 | use HandlerClassNameTrait; | ||
| 20 | use RuleNameTrait; | ||
| 21 | |||
| 22 | 12 | public function __construct( | |
| 23 | public string $message = 'Value cannot be blank.', | ||
| 24 | public bool $skipOnEmpty = false, | ||
| 25 | public bool $skipOnError = false, | ||
| 26 | public ?Closure $when = null, | ||
| 27 |     ) { | ||
| 28 | } | ||
| 29 | |||
| 30 | 2 | public function getOptions(): array | |
| 38 | ]; | ||
| 39 | } | ||
| 41 |