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