Total Complexity | 2 |
Total Lines | 16 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
8 | trait HasQuantity |
||
9 | { |
||
10 | /** |
||
11 | * @var QuantityInterface prepaid quantity also implies Unit |
||
12 | * XXX cannot be null cause Unit is required |
||
13 | */ |
||
14 | protected QuantityInterface $prepaid; |
||
15 | |||
16 | public function getPrepaid(): QuantityInterface |
||
17 | { |
||
18 | return $this->prepaid; |
||
19 | } |
||
20 | |||
21 | public function getUnit(): UnitInterface |
||
24 | } |
||
25 | } |
||
26 |