| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | 1 | protected function configureOptions(OptionsResolver $resolver): void |
|
| 26 | { |
||
| 27 | 1 | parent::configureOptions($resolver); |
|
| 28 | |||
| 29 | // validate / format options |
||
| 30 | 1 | $resolver->setAllowedValues('roundingDocument', ['none', 'math2one', 'math2half', 'math2tenth', 'math5cent', 'up2one', 'up2half', 'up2tenth', 'down2one', 'down2half', 'down2tenth']); |
|
| 31 | 1 | $resolver->setAllowedValues('roundingVAT', ['none', 'noneEveryRate', 'up2tenthEveryItem', 'up2tenthEveryRate', 'math2tenthEveryItem', 'math2tenthEveryRate', 'math2halfEveryItem', 'math2halfEveryRate', 'math2intEveryItem', 'math2intEveryRate']); |
|
| 32 | 1 | $resolver->setNormalizer('calculateVAT', $this->normalizerFactory->getClosure('bool')); |
|
| 33 | } |
||
| 35 |