| Total Complexity | 5 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | trait ValidationTrait |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @return array<string> |
||
| 11 | */ |
||
| 12 | abstract protected function amountFields(): array; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Process input values before validation |
||
| 16 | * |
||
| 17 | * @param array $values |
||
| 18 | * |
||
| 19 | * @return array |
||
| 20 | */ |
||
| 21 | protected function values(array $values): array |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @return string |
||
| 37 | */ |
||
| 38 | protected function amountRule(): string |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @param string $field |
||
| 45 | * |
||
| 46 | * @return string |
||
| 47 | */ |
||
| 48 | protected function amountIfRule(string $field): string |
||
| 53 |