1 | <?php |
||
26 | final class Resource implements InitializationInterface { |
||
27 | /** |
||
28 | * @var string default language of the localized data BCP 47 |
||
29 | */ |
||
30 | private $defaultLanguage = ''; |
||
31 | |||
32 | /** |
||
33 | * @var null|Price default in-app product price |
||
34 | */ |
||
35 | private $defaultPrice = null; |
||
36 | |||
37 | /** |
||
38 | * @var Listing[] language of the localized data, specified with a BCP 47 language |
||
39 | */ |
||
40 | private $listings = []; |
||
41 | |||
42 | /** |
||
43 | * @var string package name of the parent app |
||
44 | */ |
||
45 | private $packageName = ''; |
||
46 | |||
47 | /** |
||
48 | * @var Price[] prices per buyer region |
||
49 | */ |
||
50 | private $prices = []; |
||
51 | |||
52 | /** |
||
53 | * @var string purchase type enum value |
||
54 | */ |
||
55 | private $purchaseType = ''; |
||
56 | |||
57 | /** |
||
58 | * @var Season|null season for a seasonal subscription |
||
59 | */ |
||
60 | private $season = null; |
||
61 | |||
62 | /** |
||
63 | * @var string stock-keeping-unit of the product |
||
64 | */ |
||
65 | private $sku = ''; |
||
66 | |||
67 | /** |
||
68 | * @var string in-app product status |
||
69 | */ |
||
70 | private $status = ''; |
||
71 | |||
72 | /** |
||
73 | * @var string subscription period, specified in ISO 8601 format |
||
74 | */ |
||
75 | private $subscriptionPeriod = ''; |
||
76 | |||
77 | /** |
||
78 | * @var string trial period, specified in ISO 8601 format |
||
79 | */ |
||
80 | private $trialPeriod = ''; |
||
81 | |||
82 | /** |
||
83 | * @return string default language of the localized data BCP 47 |
||
84 | */ |
||
85 | 2 | public function getDefaultLanguage() { |
|
88 | |||
89 | /** |
||
90 | * @return null|Price default in-app product price |
||
91 | */ |
||
92 | 2 | public function getDefaultPrice() { |
|
95 | |||
96 | /** |
||
97 | * @return Listing[] language of the localized data, specified with a BCP 47 language |
||
98 | */ |
||
99 | 2 | public function getListings() { |
|
102 | |||
103 | /** |
||
104 | * @return string package name of the parent app |
||
105 | */ |
||
106 | 2 | public function getPackageName() { |
|
109 | |||
110 | /** |
||
111 | * @return Price[] prices per buyer region |
||
112 | */ |
||
113 | 2 | public function getPrices() { |
|
116 | |||
117 | /** |
||
118 | * @return string purchase type enum value |
||
119 | */ |
||
120 | 2 | public function getPurchaseType() { |
|
123 | |||
124 | /** |
||
125 | * @return Season|null season for a seasonal subscription |
||
126 | */ |
||
127 | 2 | public function getSeason() { |
|
130 | |||
131 | /** |
||
132 | * @return string stock-keeping-unit of the product, |
||
133 | */ |
||
134 | 2 | public function getSku() { |
|
137 | |||
138 | /** |
||
139 | * @return string in-app product status |
||
140 | */ |
||
141 | 2 | public function getStatus() { |
|
144 | |||
145 | /** |
||
146 | * @return string subscription period, specified in ISO 8601 format |
||
147 | */ |
||
148 | 2 | public function getSubscriptionPeriod() { |
|
151 | |||
152 | /** |
||
153 | * @return string trial period, specified in ISO 8601 format |
||
154 | */ |
||
155 | 1 | public function getTrialPeriod() { |
|
158 | |||
159 | /** |
||
160 | * @inheritdoc |
||
161 | */ |
||
162 | 1 | public static function initializeByString($string) { |
|
186 | |||
187 | /** |
||
188 | * @inheritdoc |
||
189 | */ |
||
190 | 1 | public function __toString() { |
|
205 | } |
||
206 |