| 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 setMoneyFormat(string $moneyFormat): self |
||
| 20 | } |
||
| 21 | |||
| 22 | protected function getNormalizedValue(string $value): string |
||
| 27 |