| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Description of PurchaseCodeInfoLimits |
| 5 |
* |
| 6 |
* @author Ali2Woo Team |
| 7 |
*/ |
| 8 |
|
| 9 |
namespace AliNext_Lite;; |
| 10 |
|
| 11 |
class PurchaseCodeInfoLimits |
| 12 |
{ |
| 13 |
public const FIELD_ALL = 'all'; |
| 14 |
public const FIELD_DESCRIPTION = 'description'; |
| 15 |
public const FIELD_PRODUCT = 'product'; |
| 16 |
public const FIELD_PRODUCTS = 'products'; |
| 17 |
public const FIELD_REVIEWS = 'reviews'; |
| 18 |
public const FIELD_CATEGORY = 'category'; |
| 19 |
public const FIELD_SHIPPING = 'shipping'; |
| 20 |
public const FIELD_SYNC_PRODUCT = 'sync_product'; |
| 21 |
public const FIELD_ORDERS = 'orders'; |
| 22 |
public const FIELD_SITES = 'sites'; |
| 23 |
|
| 24 |
|
| 25 |
private int $all; |
| 26 |
private int $description; |
| 27 |
private int $product; |
| 28 |
private int $products; |
| 29 |
private int $reviews; |
| 30 |
private int $category; |
| 31 |
private int $shipping; |
| 32 |
private int $syncProduct; |
| 33 |
private int $orders; |
| 34 |
private int $sites; |
| 35 |
|
| 36 |
public function getAll(): int |
| 37 |
{ |
| 38 |
return $this->all; |
| 39 |
} |
| 40 |
|
| 41 |
public function setAll(int $all): self |
| 42 |
{ |
| 43 |
$this->all = $all; |
| 44 |
|
| 45 |
return $this; |
| 46 |
} |
| 47 |
|
| 48 |
public function getDescription(): int |
| 49 |
{ |
| 50 |
return $this->description; |
| 51 |
} |
| 52 |
|
| 53 |
public function setDescription(int $description): self |
| 54 |
{ |
| 55 |
$this->description = $description; |
| 56 |
|
| 57 |
return $this; |
| 58 |
} |
| 59 |
|
| 60 |
public function getProduct(): int |
| 61 |
{ |
| 62 |
return $this->product; |
| 63 |
} |
| 64 |
|
| 65 |
public function setProduct(int $product): self |
| 66 |
{ |
| 67 |
$this->product = $product; |
| 68 |
|
| 69 |
return $this; |
| 70 |
} |
| 71 |
|
| 72 |
public function getProducts(): int |
| 73 |
{ |
| 74 |
return $this->products; |
| 75 |
} |
| 76 |
|
| 77 |
public function setProducts(int $products): self |
| 78 |
{ |
| 79 |
$this->products = $products; |
| 80 |
|
| 81 |
return $this; |
| 82 |
} |
| 83 |
|
| 84 |
public function getReviews(): int |
| 85 |
{ |
| 86 |
return $this->reviews; |
| 87 |
} |
| 88 |
|
| 89 |
public function setReviews(int $reviews): self |
| 90 |
{ |
| 91 |
$this->reviews = $reviews; |
| 92 |
|
| 93 |
return $this; |
| 94 |
} |
| 95 |
|
| 96 |
public function getCategory(): int |
| 97 |
{ |
| 98 |
return $this->category; |
| 99 |
} |
| 100 |
|
| 101 |
public function setCategory(int $category): self |
| 102 |
{ |
| 103 |
$this->category = $category; |
| 104 |
|
| 105 |
return $this; |
| 106 |
} |
| 107 |
|
| 108 |
public function getShipping(): int |
| 109 |
{ |
| 110 |
return $this->shipping; |
| 111 |
} |
| 112 |
|
| 113 |
public function setShipping(int $shipping): self |
| 114 |
{ |
| 115 |
$this->shipping = $shipping; |
| 116 |
|
| 117 |
return $this; |
| 118 |
} |
| 119 |
|
| 120 |
public function getSyncProduct(): int |
| 121 |
{ |
| 122 |
return $this->syncProduct; |
| 123 |
} |
| 124 |
|
| 125 |
public function setSyncProduct(int $syncProduct): self |
| 126 |
{ |
| 127 |
$this->syncProduct = $syncProduct; |
| 128 |
|
| 129 |
return $this; |
| 130 |
} |
| 131 |
|
| 132 |
public function getOrders(): int |
| 133 |
{ |
| 134 |
return $this->orders; |
| 135 |
} |
| 136 |
|
| 137 |
public function setOrders(int $orders): self |
| 138 |
{ |
| 139 |
$this->orders = $orders; |
| 140 |
|
| 141 |
return $this; |
| 142 |
} |
| 143 |
|
| 144 |
public function getSites(): int |
| 145 |
{ |
| 146 |
return $this->sites; |
| 147 |
} |
| 148 |
|
| 149 |
public function setSites(int $sites): self |
| 150 |
{ |
| 151 |
$this->sites = $sites; |
| 152 |
|
| 153 |
return $this; |
| 154 |
} |
| 155 |
|
| 156 |
public function toArray(): array |
| 157 |
{ |
| 158 |
return [ |
| 159 |
self::FIELD_ALL => $this->getAll(), |
| 160 |
self::FIELD_DESCRIPTION => $this->getDescription(), |
| 161 |
self::FIELD_PRODUCT => $this->getProduct(), |
| 162 |
self::FIELD_PRODUCTS => $this->getProducts(), |
| 163 |
self::FIELD_REVIEWS => $this->getReviews(), |
| 164 |
self::FIELD_CATEGORY => $this->getCategory(), |
| 165 |
self::FIELD_SHIPPING => $this->getShipping(), |
| 166 |
self::FIELD_SYNC_PRODUCT => $this->getSyncProduct(), |
| 167 |
self::FIELD_ORDERS => $this->getOrders(), |
| 168 |
self::FIELD_SITES => $this->getSites(), |
| 169 |
]; |
| 170 |
} |
| 171 |
} |
| 172 |
|