| @@ 55-67 (lines=13) @@ | ||
| 52 | return new self(); |
|
| 53 | } |
|
| 54 | ||
| 55 | public static function fromParameters( |
|
| 56 | string $decimalsSeparator = self::DEFAULT_DECIMALS_SEPARATOR, |
|
| 57 | string $thousandsSeparator = self::DEFAULT_THOUSANDS_SEPARATOR, |
|
| 58 | int $decorationType = self::DECORATION_SYMBOL, |
|
| 59 | int $decorationSpace = self::DECORATION_WITHOUT_SPACE |
|
| 60 | ): MoneyFormatInterface { |
|
| 61 | return new self( |
|
| 62 | $decimalsSeparator, |
|
| 63 | $thousandsSeparator, |
|
| 64 | $decorationType, |
|
| 65 | $decorationSpace |
|
| 66 | ); |
|
| 67 | } |
|
| 68 | ||
| 69 | public static function fromParametersWithPrecision( |
|
| 70 | int $precision, |
|
| @@ 69-84 (lines=16) @@ | ||
| 66 | ); |
|
| 67 | } |
|
| 68 | ||
| 69 | public static function fromParametersWithPrecision( |
|
| 70 | int $precision, |
|
| 71 | string $decimalsSeparator = self::DEFAULT_DECIMALS_SEPARATOR, |
|
| 72 | string $thousandsSeparator = self::DEFAULT_THOUSANDS_SEPARATOR, |
|
| 73 | int $decorationType = self::DECORATION_SYMBOL, |
|
| 74 | int $decorationSpace = self::DECORATION_WITHOUT_SPACE |
|
| 75 | ): MoneyFormatInterface { |
|
| 76 | return new self( |
|
| 77 | $decimalsSeparator, |
|
| 78 | $thousandsSeparator, |
|
| 79 | $decorationType, |
|
| 80 | $decorationSpace, |
|
| 81 | 0, |
|
| 82 | $precision |
|
| 83 | ); |
|
| 84 | } |
|
| 85 | ||
| 86 | public static function fromParametersWithExtraPrecision( |
|
| 87 | int $extraPrecision, |
|
| @@ 86-100 (lines=15) @@ | ||
| 83 | ); |
|
| 84 | } |
|
| 85 | ||
| 86 | public static function fromParametersWithExtraPrecision( |
|
| 87 | int $extraPrecision, |
|
| 88 | string $decimalsSeparator = self::DEFAULT_DECIMALS_SEPARATOR, |
|
| 89 | string $thousandsSeparator = self::DEFAULT_THOUSANDS_SEPARATOR, |
|
| 90 | int $decorationType = self::DECORATION_SYMBOL, |
|
| 91 | int $decorationSpace = self::DECORATION_WITHOUT_SPACE |
|
| 92 | ): MoneyFormatInterface { |
|
| 93 | return new self( |
|
| 94 | $decimalsSeparator, |
|
| 95 | $thousandsSeparator, |
|
| 96 | $decorationType, |
|
| 97 | $decorationSpace, |
|
| 98 | $extraPrecision |
|
| 99 | ); |
|
| 100 | } |
|
| 101 | ||
| 102 | /** |
|
| 103 | * @return string |
|