| Total Complexity | 4 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class TargetValidator extends AbstractValidator |
||
| 12 | { |
||
| 13 | use ValidationTrait; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @param LocaleService $localeService |
||
| 17 | */ |
||
| 18 | public function __construct(private LocaleService $localeService) |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @return array<string> |
||
| 23 | */ |
||
| 24 | protected function amountFields(): array |
||
| 25 | { |
||
| 26 | return ['amount']; |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Validate settlement target data |
||
| 31 | * |
||
| 32 | * @param array $values |
||
| 33 | * |
||
| 34 | * @return array |
||
| 35 | */ |
||
| 36 | public function validateItem(array $values): array |
||
| 51 | } |
||
| 52 | } |
||
| 53 |