1 | <?php |
||
14 | class UnitsParameter { |
||
15 | |||
16 | /** |
||
17 | * @var ItemId[] |
||
18 | */ |
||
19 | private $unitItemIds; |
||
20 | |||
21 | /** |
||
22 | * @var UnboundedQuantityValue[] |
||
23 | */ |
||
24 | private $unitQuantities; |
||
25 | |||
26 | /** |
||
27 | * @var bool |
||
28 | */ |
||
29 | private $unitlessAllowed; |
||
30 | |||
31 | /** |
||
32 | * @param ItemId[] $unitItemIds The item IDs of the allowed units. |
||
33 | * @param UnboundedQuantityValue[] $unitQuantities Quantities with the allowed units. |
||
34 | * @param bool $unitlessAllowed Whether unitless values (unit '1') are allowed or not. |
||
35 | */ |
||
36 | public function __construct( |
||
45 | |||
46 | /** |
||
47 | * @return ItemId[] The item IDs of the allowed units. |
||
48 | */ |
||
49 | public function getUnitItemIds() { |
||
52 | |||
53 | /** |
||
54 | * @return UnboundedQuantityValue[] Quantities with the allowed units. |
||
55 | */ |
||
56 | public function getUnitQuantities() { |
||
59 | |||
60 | /** |
||
61 | * @return bool Whether unitless values (unit '1') are allowed or not. |
||
62 | */ |
||
63 | public function getUnitlessAllowed() { |
||
66 | |||
67 | } |
||
68 |