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
AllInstallationsParams.php
48 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 | class AllInstallationsParams extends CollectionParams { |
| 8 | |
| 9 | /** @var string[] */ |
| 10 | private $segmentIds; |
| 11 | |
| 12 | /** @var string */ |
| 13 | private $reachability; |
| 14 | |
| 15 | /** |
| 16 | * @return string[] |
| 17 | */ |
| 18 | public function getSegmentIds() { |
| 19 | return $this->segmentIds; |
| 20 | } |
| 21 | |
| 22 | /** |
| 23 | * @return string |
| 24 | */ |
| 25 | public function getReachability() { |
| 26 | return $this->reachability; |
| 27 | } |
| 28 | |
| 29 | /** |
| 30 | * @param string $reachability optIn, optOut or softOptOut |
| 31 | * @return AllInstallationsParams |
| 32 | */ |
| 33 | public function setReachability($reachability) { |
| 34 | $this->reachability = $reachability; |
| 35 | return $this; |
| 36 | } |
| 37 | |
| 38 | /** |
| 39 | * @param string|string[] $segmentIds A single id, an array of ids, or multiple id parameters. |
| 40 | * @return $this |
| 41 | */ |
| 42 | public function setSegmentIds($segmentIds) { |
| 43 | $this->segmentIds = \WonderPush\Util\ArrayUtil::flatten(func_get_args()); |
| 44 | return $this; |
| 45 | } |
| 46 | |
| 47 | } |
| 48 |