Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
33 | public function format( |
||
34 | float|int|string $number, |
||
35 | NumberPattern|string $pattern, |
||
36 | ?Symbols $symbols = null, |
||
37 | string $currencySymbol = self::DEFAULT_CURRENCY_SYMBOL |
||
38 | ): string { |
||
39 | return str_replace( |
||
40 | self::DEFAULT_CURRENCY_SYMBOL, |
||
41 | $currencySymbol, |
||
42 | $this->number_formatter->format($number, $pattern, $symbols) |
||
43 | ); |
||
51 |