1 | <?php |
||
27 | class EnumPrice extends AbstractPrice |
||
28 | { |
||
29 | /** |
||
30 | * @var UnitInterface |
||
31 | */ |
||
32 | protected $unit; |
||
33 | |||
34 | /** |
||
35 | * @var Currency |
||
36 | */ |
||
37 | protected $currency; |
||
38 | |||
39 | /** |
||
40 | * @var MoneyInterface[] amount => price |
||
41 | */ |
||
42 | protected $prices; |
||
43 | |||
44 | 2 | public function __construct( |
|
57 | |||
58 | 1 | public function getUnit() |
|
62 | |||
63 | 1 | public function getPrices() |
|
67 | |||
68 | /** |
||
69 | * {@inheritdoc} |
||
70 | */ |
||
71 | 2 | public function calculatePrice(QuantityInterface $quantity) |
|
82 | |||
83 | /** |
||
84 | * {@inheritdoc} |
||
85 | */ |
||
86 | 2 | public function calculateUsage(QuantityInterface $quantity) |
|
90 | } |
||
91 |