1 | <?php |
||
14 | class Plan |
||
15 | { |
||
16 | /** |
||
17 | * The account ID of the account that this Plan & Usage information is associated with |
||
18 | * @var integer |
||
19 | */ |
||
20 | private $accountId; |
||
21 | |||
22 | /** |
||
23 | * The name of the plan for the current account |
||
24 | * @var string |
||
25 | */ |
||
26 | private $planName; |
||
27 | |||
28 | /** |
||
29 | * Array of products under this account |
||
30 | * @var ProductUsage[] |
||
31 | */ |
||
32 | private $productUsages; |
||
33 | |||
34 | /** |
||
35 | * The status of the plan for the current account |
||
36 | * @var string |
||
37 | */ |
||
38 | private $status; |
||
39 | |||
40 | /** |
||
41 | * The unit by which we measure the usage of this account |
||
42 | * @var string |
||
43 | */ |
||
44 | private $unitOfMeasurement; |
||
45 | |||
46 | /** |
||
47 | * Constructor. |
||
48 | */ |
||
49 | 4 | public function __construct($options = array()) |
|
69 | |||
70 | /** |
||
71 | * Returns this object as array. |
||
72 | */ |
||
73 | 1 | public function toArray() |
|
96 | |||
97 | 3 | public function getAccountId() |
|
101 | |||
102 | 4 | public function setAccountId($accountId) |
|
106 | |||
107 | 4 | public function getPlanName() |
|
111 | |||
112 | 4 | public function setPlanName($planName) |
|
116 | |||
117 | 3 | public function getProductUsages() |
|
121 | |||
122 | 4 | public function setProductUsages($productUsages) |
|
126 | |||
127 | 3 | public function getStatus() |
|
131 | |||
132 | 4 | public function setStatus($status) |
|
136 | |||
137 | 3 | public function getUnitOfMeasurement() |
|
141 | |||
142 | 4 | public function setUnitOfMeasurement($unitOfMeasurement) |
|
146 | } |
||
147 | |||
156 |