1 | <?php |
||
16 | class JsonLdQuantityFormatter extends ValueFormatterBase implements JsonLdDataValueFormatter { |
||
17 | |||
18 | /** |
||
19 | * @var QuantityFormatter |
||
20 | */ |
||
21 | private $quantityFormatter; |
||
22 | |||
23 | /** |
||
24 | * @var JsonLdDecimalFormatter |
||
25 | */ |
||
26 | private $decimalFormatter; |
||
27 | |||
28 | /** |
||
29 | * @param QuantityFormatter $quantityFormatter |
||
30 | * @param JsonLdDecimalFormatter $decimalFormatter |
||
31 | * @param FormatterOptions|null $options |
||
32 | */ |
||
33 | 2 | public function __construct( |
|
43 | |||
44 | /** |
||
45 | * @see ValueFormatter::format |
||
46 | */ |
||
47 | 2 | public function format($value) { |
|
54 | |||
55 | 2 | private function toJsonLd(QuantityValue $value) { |
|
69 | } |
||
70 |