Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
36 | 3 | public function formatted(string $thousandsSeparator = ',', string $decimalsSeparator = '.'): string |
|
37 | { |
||
38 | 3 | return $this->currency->value() . ' ' . |
|
39 | 3 | number_format( |
|
40 | 3 | $this->amountFloat(), |
|
41 | 3 | $this->currency->config()->decimals(), |
|
42 | $decimalsSeparator, |
||
43 | $thousandsSeparator |
||
44 | ); |
||
47 |