| Total Complexity | 2 | 
| Total Lines | 18 | 
| Duplicated Lines | 0 % | 
| Coverage | 0% | 
| Changes | 0 | ||
| 1 | <?php | ||
| 7 | class MoneyNormalizer extends AbstractNormalizer | ||
| 8 | { | ||
| 9 | private string $moneyFormat = '%.2n'; | ||
| 10 | |||
| 11 | /** | ||
| 12 | * Sets the format passed to money_format. Defaults to %.2n which formats the number according to the current | ||
| 13 | * locale's national currency format rounded to 2 decimal places. e.g for en_GB: £1,234.56. | ||
| 14 | */ | ||
| 15 | public function format(string $moneyFormat): self | ||
| 16 |     { | ||
| 17 | $this->moneyFormat = $moneyFormat; | ||
| 18 | |||
| 19 | return $this; | ||
| 20 | } | ||
| 21 | |||
| 22 | protected function getNormalizedValue(string $value): string | ||
| 25 | } | ||
| 26 | } | ||
| 27 |