1 | <?php |
||
14 | final class Tier implements CreatableFromArray |
||
15 | { |
||
16 | /** |
||
17 | * @var int |
||
18 | */ |
||
19 | private $flatAmount; |
||
20 | |||
21 | /** |
||
22 | * @var int |
||
23 | */ |
||
24 | private $unitAmount; |
||
25 | |||
26 | /** |
||
27 | * @var int |
||
28 | */ |
||
29 | private $upTo; |
||
30 | |||
31 | public static function createFromArray(array $data): self |
||
40 | |||
41 | public function getFlatAmount(): int |
||
45 | |||
46 | public function getUnitAmount(): int |
||
50 | |||
51 | public function getUpTo(): int |
||
55 | } |
||
56 |