Total Complexity | 6 |
Total Lines | 47 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
12 | class ChargeValidator extends AbstractValidator |
||
13 | { |
||
14 | use ValidationTrait; |
||
15 | |||
16 | /** |
||
17 | * @param LocaleService $localeService |
||
18 | */ |
||
19 | public function __construct(private LocaleService $localeService) |
||
20 | {} |
||
21 | |||
22 | /** |
||
23 | * @return array<string> |
||
24 | */ |
||
25 | protected function amountFields(): array |
||
26 | { |
||
27 | return ['amount']; |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * @param array $values |
||
32 | * |
||
33 | * @return array |
||
34 | */ |
||
35 | public function validateItem(array $values): array |
||
59 | } |
||
60 | } |
||
61 |