| 1 | <?php |
||
| 9 | class ShopInventory |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Payment Categories of the Country |
||
| 13 | * |
||
| 14 | * @var PaymentCategory[] |
||
| 15 | */ |
||
| 16 | public $paymentCategories = []; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Inventory Items |
||
| 20 | * |
||
| 21 | * @var array |
||
| 22 | */ |
||
| 23 | public $pricePoints = []; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * If double Credits are Enabled |
||
| 27 | * |
||
| 28 | * @var bool |
||
| 29 | */ |
||
| 30 | public $doubleCredits = false; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Country Meta Data |
||
| 34 | * |
||
| 35 | * @var Country |
||
| 36 | */ |
||
| 37 | public $country = null; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Create a Shop Inventory |
||
| 41 | * |
||
| 42 | * @param Country $country |
||
| 43 | */ |
||
| 44 | public function __construct(Country $country) |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Set the Country Metadata |
||
| 53 | * |
||
| 54 | * @param Country $country |
||
| 55 | */ |
||
| 56 | public function setCountry(Country $country) |
||
| 60 | |||
| 61 | /** |
||
| 62 | * Set the Payment Methods |
||
| 63 | * |
||
| 64 | * @param string $countryCode |
||
| 65 | */ |
||
| 66 | public function setPaymentCategories(string $countryCode) |
||
| 75 | |||
| 76 | /** |
||
| 77 | * Get All Shop Items from this Country Code |
||
| 78 | * |
||
| 79 | * @param string $countryCode |
||
| 80 | */ |
||
| 81 | public function setPricePoints(string $countryCode) |
||
| 85 | } |
||
| 86 |