Total Complexity | 5 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
15 | class Required extends Rule |
||
16 | { |
||
17 | use HasValidationErrorMessage; |
||
18 | |||
19 | private string $message = 'Value cannot be blank.'; |
||
20 | |||
21 | 6 | protected function validateValue($value, DataSetInterface $dataSet = null): Result |
|
30 | } |
||
31 | |||
32 | /** |
||
33 | * @inheritDoc |
||
34 | * @return string |
||
35 | */ |
||
36 | 2 | public function getName(): string |
|
39 | } |
||
40 | |||
41 | /** |
||
42 | * @inheritDoc |
||
43 | * @return array |
||
44 | */ |
||
45 | 2 | public function getOptions(): array |
|
53 |