1 | <?php |
||
16 | class DecimalFormatter extends ValueFormatterBase { |
||
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 | const OPT_FORCE_SIGN = 'forceSign'; |
||
24 | |||
25 | /** |
||
26 | * @var NumberLocalizer |
||
27 | */ |
||
28 | private $localizer; |
||
29 | |||
30 | /** |
||
31 | * @param FormatterOptions|null $options |
||
32 | * @param NumberLocalizer|null $localizer |
||
33 | */ |
||
34 | 7 | public function __construct( FormatterOptions $options = null, NumberLocalizer $localizer = null ) { |
|
41 | |||
42 | /** |
||
43 | * @see ValueFormatter::format |
||
44 | * |
||
45 | * @param DecimalValue $dataValue |
||
46 | * |
||
47 | * @throws InvalidArgumentException |
||
48 | * @return string Text |
||
49 | */ |
||
50 | 7 | public function format( $dataValue ) { |
|
68 | |||
69 | } |
||
70 |