1 | <?php |
||
16 | class DecimalFormatter implements ValueFormatter { |
||
17 | |||
18 | /** |
||
19 | * Option key for forcing the sign to be included in the |
||
20 | * formatter's output even if it's "+". The value must |
||
21 | * be a boolean. |
||
22 | */ |
||
23 | public const OPT_FORCE_SIGN = 'forceSign'; |
||
24 | |||
25 | /** |
||
26 | * @var FormatterOptions |
||
27 | */ |
||
28 | private $options; |
||
29 | |||
30 | /** |
||
31 | * @var NumberLocalizer |
||
32 | */ |
||
33 | private $localizer; |
||
34 | 7 | ||
35 | 7 | /** |
|
36 | * @param FormatterOptions|null $options |
||
37 | 7 | * @param NumberLocalizer|null $localizer |
|
38 | */ |
||
39 | 7 | public function __construct( FormatterOptions $options = null, NumberLocalizer $localizer = null ) { |
|
47 | |||
48 | /** |
||
49 | * @see ValueFormatter::format |
||
50 | 7 | * |
|
51 | 7 | * @param DecimalValue $dataValue |
|
52 | * |
||
53 | * @throws InvalidArgumentException |
||
54 | * @return string Text |
||
55 | */ |
||
56 | 7 | public function format( $dataValue ) { |
|
74 | |||
75 | } |
||
76 |