1 | <?php |
||
22 | class Plan implements PlanInterface |
||
23 | { |
||
24 | /** |
||
25 | * @var int |
||
26 | */ |
||
27 | protected $id; |
||
28 | |||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | protected $name; |
||
33 | |||
34 | /** |
||
35 | * @var Plan|null |
||
36 | * XXX not sure to implement |
||
37 | */ |
||
38 | protected $parent; |
||
39 | |||
40 | /** |
||
41 | * @var CustomerInterface |
||
42 | */ |
||
43 | protected $seller; |
||
44 | |||
45 | /** |
||
46 | * @var PriceInterface[] |
||
47 | */ |
||
48 | protected $prices = []; |
||
49 | |||
50 | /** |
||
51 | * @param PriceInterface[] $prices |
||
52 | */ |
||
53 | 1 | public function __construct( |
|
64 | |||
65 | public function getUniqueId() |
||
69 | |||
70 | /** |
||
71 | * @return int|string |
||
72 | */ |
||
73 | public function getId() |
||
77 | |||
78 | /** |
||
79 | * @return PriceInterface[] |
||
80 | */ |
||
81 | public function getPrices() |
||
85 | |||
86 | /** |
||
87 | * @param PriceInterface[] $prices |
||
88 | */ |
||
89 | public function setPrices(array $prices) |
||
96 | |||
97 | /** |
||
98 | * Calculate charges for given action. |
||
99 | * @param ActionInterface $action |
||
100 | * @return Charge[] |
||
101 | */ |
||
102 | 2 | public function calculateCharges(ActionInterface $action) |
|
114 | |||
115 | public function jsonSerialize() |
||
119 | } |
||
120 |