| Total Complexity | 6 |
| Total Lines | 60 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class DebtValidator extends AbstractValidator |
||
| 12 | { |
||
| 13 | use ValidationTrait; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @param LocaleService $localeService |
||
| 17 | */ |
||
| 18 | public function __construct(private LocaleService $localeService) |
||
| 19 | {} |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @return array<string> |
||
| 23 | */ |
||
| 24 | protected function amountFields(): array |
||
| 25 | { |
||
| 26 | return ['amount']; |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Validate partial refund data |
||
| 31 | * |
||
| 32 | * @param array $values |
||
| 33 | * |
||
| 34 | * @return array |
||
| 35 | */ |
||
| 36 | public function validateItem(array $values): array |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @param string $debtId |
||
| 54 | * |
||
| 55 | * @return array |
||
| 56 | */ |
||
| 57 | public function validate(string $debtId): array |
||
| 73 |