Total Complexity | 1 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | final class ObjectWithLabelsProvider implements LabelsProviderInterface |
||
13 | { |
||
14 | #[Required(message: '{attribute} cannot be blank.')] |
||
15 | public string $name = ''; |
||
16 | |||
17 | #[Number(min: 21, lessThanMinMessage: '{attribute} must be no less than {min}.')] |
||
18 | #[Label('test age')] |
||
19 | protected int $age = 17; |
||
20 | |||
21 | #[Number(max: 100)] |
||
22 | #[Label('test')] |
||
23 | private int $number = 42; |
||
|
|||
24 | |||
25 | public function getValidationPropertyLabels(): array |
||
33 |