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
CreateCampaignParams.php
49 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 | use WonderPush\Obj\Notification; |
| 9 | use WonderPush\Obj\Campaign; |
| 10 | |
| 11 | class CreateCampaignParams extends PatchCampaignParams { |
| 12 | /** @var string */ |
| 13 | private $channel; |
| 14 | /** @var string */ |
| 15 | private $viewId; |
| 16 | |
| 17 | /** |
| 18 | * @return string |
| 19 | */ |
| 20 | public function getChannel() { |
| 21 | return $this->channel; |
| 22 | } |
| 23 | |
| 24 | /** |
| 25 | * @param string $channel |
| 26 | * @return CreateCampaignParams |
| 27 | */ |
| 28 | public function setChannel($channel) { |
| 29 | $this->channel = $channel; |
| 30 | return $this; |
| 31 | } |
| 32 | |
| 33 | /** |
| 34 | * @return string |
| 35 | */ |
| 36 | public function getViewId() { |
| 37 | return $this->viewId; |
| 38 | } |
| 39 | |
| 40 | /** |
| 41 | * @param string $viewId |
| 42 | * @return CreateCampaignParams |
| 43 | */ |
| 44 | public function setViewId($viewId) { |
| 45 | $this->viewId = $viewId; |
| 46 | return $this; |
| 47 | } |
| 48 | |
| 49 | } |