AllInstallationsParams.php
1 year ago
CollectionParams.php
1 year ago
CreateCampaignParams.php
1 year ago
DeliveriesCreateParams.php
1 year ago
FrequentFieldValuesParams.php
1 year ago
PatchCampaignParams.php
1 year ago
PatchInstallationParams.php
1 year ago
TrackEventParams.php
1 year ago
FrequentFieldValuesParams.php
107 lines
| 1 | <?php |
| 2 | |
| 3 | namespace WonderPush\Params; |
| 4 | |
| 5 | if (count(get_included_files()) === 1) { http_response_code(403); exit(); } // Prevent direct access |
| 6 | |
| 7 | use WonderPush\Obj\BaseObject; |
| 8 | |
| 9 | class FrequentFieldValuesParams extends BaseObject { |
| 10 | |
| 11 | /** @var int */ |
| 12 | private $limit; |
| 13 | |
| 14 | /** @var string[] */ |
| 15 | private $platforms; |
| 16 | |
| 17 | /** @var string */ |
| 18 | private $field; |
| 19 | |
| 20 | /** @var string */ |
| 21 | private $kind; |
| 22 | |
| 23 | /** @var string */ |
| 24 | private $viewId; |
| 25 | |
| 26 | /** |
| 27 | * @return int |
| 28 | */ |
| 29 | public function getLimit() { |
| 30 | return $this->limit; |
| 31 | } |
| 32 | |
| 33 | /** |
| 34 | * @param int $limit |
| 35 | * @return FrequentFieldValuesParams |
| 36 | */ |
| 37 | public function setLimit($limit) { |
| 38 | $this->limit = $limit; |
| 39 | return $this; |
| 40 | } |
| 41 | |
| 42 | /** |
| 43 | * @return string[] |
| 44 | */ |
| 45 | public function getPlatforms() { |
| 46 | return $this->platforms; |
| 47 | } |
| 48 | |
| 49 | /** |
| 50 | * @param string[] $platforms |
| 51 | * @return FrequentFieldValuesParams |
| 52 | */ |
| 53 | public function setPlatforms($platforms) { |
| 54 | $this->platforms = $platforms; |
| 55 | return $this; |
| 56 | } |
| 57 | |
| 58 | /** |
| 59 | * @return string |
| 60 | */ |
| 61 | public function getField() { |
| 62 | return $this->field; |
| 63 | } |
| 64 | |
| 65 | /** |
| 66 | * @param string $field |
| 67 | * @return FrequentFieldValuesParams |
| 68 | */ |
| 69 | public function setField($field) { |
| 70 | $this->field = $field; |
| 71 | return $this; |
| 72 | } |
| 73 | |
| 74 | /** |
| 75 | * @return string |
| 76 | */ |
| 77 | public function getKind() { |
| 78 | return $this->kind; |
| 79 | } |
| 80 | |
| 81 | /** |
| 82 | * @param string $kind |
| 83 | * @return FrequentFieldValuesParams |
| 84 | */ |
| 85 | public function setKind($kind) { |
| 86 | $this->kind = $kind; |
| 87 | return $this; |
| 88 | } |
| 89 | |
| 90 | /** |
| 91 | * @return string |
| 92 | */ |
| 93 | public function getViewId() { |
| 94 | return $this->viewId; |
| 95 | } |
| 96 | |
| 97 | /** |
| 98 | * @param string $viewId |
| 99 | * @return FrequentFieldValuesParams |
| 100 | */ |
| 101 | public function setViewId($viewId) { |
| 102 | $this->viewId = $viewId; |
| 103 | return $this; |
| 104 | } |
| 105 | |
| 106 | } |
| 107 |