1 | <?php |
||
16 | class DefaultQuantityFormatter implements QuantityFormatterInterface |
||
17 | { |
||
18 | /** |
||
19 | * @var Quantity |
||
20 | */ |
||
21 | protected $quantity; |
||
22 | |||
23 | /** |
||
24 | * @var IntlFormatter |
||
25 | */ |
||
26 | protected $intlFormatter; |
||
27 | |||
28 | /** |
||
29 | * MonthlyQuantity constructor. |
||
30 | * |
||
31 | * @param Quantity $quantity |
||
32 | * @param IntlFormatter $intlFormatter |
||
33 | */ |
||
34 | public function __construct(Quantity $quantity, IntlFormatter $intlFormatter) |
||
39 | |||
40 | public function format(): string |
||
44 | |||
45 | public function getValue(): string |
||
49 | |||
50 | public function getClientValue(): string |
||
54 | |||
55 | protected function getQuantity(): Quantity |
||
59 | } |
||
60 |