Application.php
11 months ago
ApplicationBrevoContactSync.php
11 months ago
ApplicationCollection.php
1 year ago
BaseObject.php
1 year ago
Campaign.php
11 months ago
CampaignCapping.php
1 year ago
CampaignCollection.php
1 year ago
CampaignSchedule.php
1 year ago
CampaignSchedulePressure.php
1 year ago
CampaignScheduleUrlCriterion.php
1 year ago
CampaignStats.php
1 year ago
CampaignSuccessResponse.php
1 year ago
CampaignUrlFilters.php
1 year ago
Collection.php
1 year ago
DeliveriesCreateResponse.php
1 year ago
Event.php
1 year ago
FrequentFieldValues.php
1 year ago
GeoLocation.php
1 year ago
Installation.php
1 year ago
InstallationApplication.php
1 year ago
InstallationApplicationApple.php
1 year ago
InstallationCollection.php
1 year ago
InstallationDevice.php
1 year ago
InstallationDeviceCapabilities.php
1 year ago
InstallationDeviceConfiguration.php
1 year ago
InstallationPreferences.php
1 year ago
InstallationPushToken.php
1 year ago
Notification.php
1 year ago
NotificationAlert.php
1 year ago
NotificationAlertAndroid.php
1 year ago
NotificationAlertAndroidButton.php
1 year ago
NotificationAlertIos.php
1 year ago
NotificationAlertIosAttachment.php
1 year ago
NotificationAlertIosForeground.php
1 year ago
NotificationAlertWeb.php
1 year ago
NotificationAlertWebButton.php
1 year ago
NotificationButton.php
1 year ago
NotificationButtonAction.php
1 year ago
NotificationButtonActionEvent.php
1 year ago
NotificationInApp.php
1 year ago
NotificationInAppButton.php
1 year ago
NotificationInAppMap.php
1 year ago
NotificationInAppMapPlace.php
1 year ago
NotificationPush.php
1 year ago
NotificationPushAndroid.php
1 year ago
NotificationPushIos.php
1 year ago
NotificationPushWeb.php
1 year ago
NullObject.php
1 year ago
Pagination.php
1 year ago
Segment.php
1 year ago
SegmentCollection.php
1 year ago
SuccessResponse.php
1 year ago
User.php
1 year ago
WebDomain.php
5 months ago
WebDomainSdkConfig.php
5 months ago
WebSdkInitOptions.php
1 year ago
Campaign.php
386 lines
| 1 | <?php |
| 2 | |
| 3 | namespace WonderPush\Obj; |
| 4 | |
| 5 | class Campaign extends BaseObject { |
| 6 | const CAMPAIGN_BUILDER_BREVO_WORDPRESS_PLUGIN = 'brevoWordPressPlugin'; |
| 7 | /** @var string */ |
| 8 | private $id; |
| 9 | /** @var string */ |
| 10 | private $applicationId; |
| 11 | /** @var integer */ |
| 12 | private $creationDate; |
| 13 | /** @var string */ |
| 14 | private $name; |
| 15 | /** @var string[] */ |
| 16 | private $notificationIds; |
| 17 | /** @var string[] */ |
| 18 | private $channels; |
| 19 | /** @var string */ |
| 20 | private $viewId; |
| 21 | /** @var string */ |
| 22 | private $deliverySpeed; |
| 23 | /** @var CampaignSchedule */ |
| 24 | private $scheduling; |
| 25 | /** @var CampaignCapping */ |
| 26 | private $capping; |
| 27 | /** @var string */ |
| 28 | private $segmentId; |
| 29 | /** @var string */ |
| 30 | private $state; |
| 31 | /** @var integer */ |
| 32 | private $updateDate; |
| 33 | /** @var integer */ |
| 34 | private $editionDate; |
| 35 | /** @var CampaignStats */ |
| 36 | private $stats; |
| 37 | /** @var Notification[] */ |
| 38 | private $notifications; |
| 39 | /** @var Segment */ |
| 40 | private $segment; |
| 41 | /** @var CampaignUrlFilters */ |
| 42 | private $urlFilters; |
| 43 | /** @var string */ |
| 44 | private $editorStaffId; |
| 45 | /** @var string */ |
| 46 | private $inheritUrlParameters; |
| 47 | /** @var string */ |
| 48 | private $campaignBuilder; |
| 49 | |
| 50 | /** |
| 51 | * @return string |
| 52 | */ |
| 53 | public function getId() { |
| 54 | return $this->id; |
| 55 | } |
| 56 | |
| 57 | /** |
| 58 | * @param string $id |
| 59 | * @return Campaign |
| 60 | */ |
| 61 | public function setId($id) { |
| 62 | $this->id = $id; |
| 63 | return $this; |
| 64 | } |
| 65 | |
| 66 | /** |
| 67 | * @return string |
| 68 | */ |
| 69 | public function getApplicationId() { |
| 70 | return $this->applicationId; |
| 71 | } |
| 72 | |
| 73 | /** |
| 74 | * @param string $applicationId |
| 75 | * @return Campaign |
| 76 | */ |
| 77 | public function setApplicationId($applicationId) { |
| 78 | $this->applicationId = $applicationId; |
| 79 | return $this; |
| 80 | } |
| 81 | |
| 82 | /** |
| 83 | * @return int |
| 84 | */ |
| 85 | public function getCreationDate() { |
| 86 | return $this->creationDate; |
| 87 | } |
| 88 | |
| 89 | /** |
| 90 | * @param int $creationDate |
| 91 | * @return Campaign |
| 92 | */ |
| 93 | public function setCreationDate($creationDate) { |
| 94 | $this->creationDate = $creationDate; |
| 95 | return $this; |
| 96 | } |
| 97 | |
| 98 | /** |
| 99 | * @return string |
| 100 | */ |
| 101 | public function getName() { |
| 102 | return $this->name; |
| 103 | } |
| 104 | |
| 105 | /** |
| 106 | * @param string $name |
| 107 | * @return Campaign |
| 108 | */ |
| 109 | public function setName($name) { |
| 110 | $this->name = $name; |
| 111 | return $this; |
| 112 | } |
| 113 | |
| 114 | /** |
| 115 | * @return string[] |
| 116 | */ |
| 117 | public function getNotificationIds() { |
| 118 | return $this->notificationIds; |
| 119 | } |
| 120 | |
| 121 | /** |
| 122 | * @param string[] $notificationIds |
| 123 | * @return Campaign |
| 124 | */ |
| 125 | public function setNotificationIds($notificationIds) { |
| 126 | $this->notificationIds = $notificationIds; |
| 127 | return $this; |
| 128 | } |
| 129 | |
| 130 | /** |
| 131 | * @return string[] |
| 132 | */ |
| 133 | public function getChannels() { |
| 134 | return $this->channels; |
| 135 | } |
| 136 | |
| 137 | /** |
| 138 | * @param string[] $channels |
| 139 | * @return Campaign |
| 140 | */ |
| 141 | public function setChannels($channels) { |
| 142 | $this->channels = $channels; |
| 143 | return $this; |
| 144 | } |
| 145 | |
| 146 | /** |
| 147 | * @return string |
| 148 | */ |
| 149 | public function getViewId() { |
| 150 | return $this->viewId; |
| 151 | } |
| 152 | |
| 153 | /** |
| 154 | * @param string $viewId |
| 155 | * @return Campaign |
| 156 | */ |
| 157 | public function setViewId($viewId) { |
| 158 | $this->viewId = $viewId; |
| 159 | return $this; |
| 160 | } |
| 161 | |
| 162 | /** |
| 163 | * @return string |
| 164 | */ |
| 165 | public function getDeliverySpeed() { |
| 166 | return $this->deliverySpeed; |
| 167 | } |
| 168 | |
| 169 | /** |
| 170 | * @param string $deliverySpeed |
| 171 | * @return Campaign |
| 172 | */ |
| 173 | public function setDeliverySpeed($deliverySpeed) { |
| 174 | $this->deliverySpeed = $deliverySpeed; |
| 175 | return $this; |
| 176 | } |
| 177 | |
| 178 | /** |
| 179 | * @return CampaignSchedule |
| 180 | */ |
| 181 | public function getScheduling() { |
| 182 | return $this->scheduling; |
| 183 | } |
| 184 | |
| 185 | /** |
| 186 | * @param CampaignSchedule $scheduling |
| 187 | * @return Campaign |
| 188 | */ |
| 189 | public function setScheduling($scheduling) { |
| 190 | $this->scheduling = BaseObject::instantiateForSetter('\WonderPush\Obj\CampaignSchedule', $scheduling); |
| 191 | return $this; |
| 192 | } |
| 193 | |
| 194 | /** |
| 195 | * @return CampaignCapping |
| 196 | */ |
| 197 | public function getCapping() { |
| 198 | return $this->capping; |
| 199 | } |
| 200 | |
| 201 | /** |
| 202 | * @param CampaignCapping $capping |
| 203 | * @return Campaign |
| 204 | */ |
| 205 | public function setCapping($capping) { |
| 206 | $this->capping = BaseObject::instantiateForSetter('\WonderPush\Obj\CampaignCapping', $capping); |
| 207 | return $this; |
| 208 | } |
| 209 | |
| 210 | /** |
| 211 | * @return string |
| 212 | */ |
| 213 | public function getSegmentId() { |
| 214 | return $this->segmentId; |
| 215 | } |
| 216 | |
| 217 | /** |
| 218 | * @param string $segmentId |
| 219 | * @return Campaign |
| 220 | */ |
| 221 | public function setSegmentId($segmentId) { |
| 222 | $this->segmentId = $segmentId; |
| 223 | return $this; |
| 224 | } |
| 225 | |
| 226 | /** |
| 227 | * @return string |
| 228 | */ |
| 229 | public function getState() { |
| 230 | return $this->state; |
| 231 | } |
| 232 | |
| 233 | /** |
| 234 | * @param string $state |
| 235 | * @return Campaign |
| 236 | */ |
| 237 | public function setState($state) { |
| 238 | $this->state = $state; |
| 239 | return $this; |
| 240 | } |
| 241 | |
| 242 | /** |
| 243 | * @return int |
| 244 | */ |
| 245 | public function getUpdateDate() { |
| 246 | return $this->updateDate; |
| 247 | } |
| 248 | |
| 249 | /** |
| 250 | * @param int $updateDate |
| 251 | * @return Campaign |
| 252 | */ |
| 253 | public function setUpdateDate($updateDate) { |
| 254 | $this->updateDate = $updateDate; |
| 255 | return $this; |
| 256 | } |
| 257 | |
| 258 | /** |
| 259 | * @return int |
| 260 | */ |
| 261 | public function getEditionDate() { |
| 262 | return $this->editionDate; |
| 263 | } |
| 264 | |
| 265 | /** |
| 266 | * @param int $editionDate |
| 267 | * @return Campaign |
| 268 | */ |
| 269 | public function setEditionDate($editionDate) { |
| 270 | $this->editionDate = $editionDate; |
| 271 | return $this; |
| 272 | } |
| 273 | |
| 274 | /** |
| 275 | * @return CampaignStats |
| 276 | */ |
| 277 | public function getStats() { |
| 278 | return $this->stats; |
| 279 | } |
| 280 | |
| 281 | /** |
| 282 | * @param CampaignStats $stats |
| 283 | * @return Campaign |
| 284 | */ |
| 285 | public function setStats($stats) { |
| 286 | $this->stats = BaseObject::instantiateForSetter('\WonderPush\Obj\CampaignStats', $stats); |
| 287 | return $this; |
| 288 | } |
| 289 | |
| 290 | /** |
| 291 | * @return Notification[] |
| 292 | */ |
| 293 | public function getNotifications() { |
| 294 | return $this->notifications; |
| 295 | } |
| 296 | |
| 297 | /** |
| 298 | * @param Notification[] $notifications |
| 299 | * @return Campaign |
| 300 | */ |
| 301 | public function setNotifications($notifications) { |
| 302 | $this->notifications = BaseObject::instantiateForSetter('\WonderPush\Obj\Notification[]', $notifications); |
| 303 | return $this; |
| 304 | } |
| 305 | |
| 306 | /** |
| 307 | * @return Segment |
| 308 | */ |
| 309 | public function getSegment() { |
| 310 | return $this->segment; |
| 311 | } |
| 312 | |
| 313 | /** |
| 314 | * @param Segment $segment |
| 315 | * @return Campaign |
| 316 | */ |
| 317 | public function setSegment($segment) { |
| 318 | $this->segment = BaseObject::instantiateForSetter('\WonderPush\Obj\Segment', $segment); |
| 319 | return $this; |
| 320 | } |
| 321 | |
| 322 | /** |
| 323 | * @return CampaignUrlFilters |
| 324 | */ |
| 325 | public function getUrlFilters() { |
| 326 | return $this->urlFilters; |
| 327 | } |
| 328 | |
| 329 | /** |
| 330 | * @param CampaignUrlFilters $urlFilters |
| 331 | * @return Campaign |
| 332 | */ |
| 333 | public function setUrlFilters($urlFilters) { |
| 334 | $this->urlFilters = BaseObject::instantiateForSetter('\WonderPush\Obj\CampaignUrlFilters', $urlFilters); |
| 335 | return $this; |
| 336 | } |
| 337 | |
| 338 | /** |
| 339 | * @return string |
| 340 | */ |
| 341 | public function getEditorStaffId() { |
| 342 | return $this->editorStaffId; |
| 343 | } |
| 344 | |
| 345 | /** |
| 346 | * @param string $editorStaffId |
| 347 | * @return Campaign |
| 348 | */ |
| 349 | public function setEditorStaffId($editorStaffId) { |
| 350 | $this->editorStaffId = $editorStaffId; |
| 351 | return $this; |
| 352 | } |
| 353 | |
| 354 | /** |
| 355 | * @return string |
| 356 | */ |
| 357 | public function getInheritUrlParameters() { |
| 358 | return $this->inheritUrlParameters; |
| 359 | } |
| 360 | |
| 361 | /** |
| 362 | * @param string $inheritUrlParameters |
| 363 | * @return Campaign |
| 364 | */ |
| 365 | public function setInheritUrlParameters($inheritUrlParameters) { |
| 366 | $this->inheritUrlParameters = $inheritUrlParameters; |
| 367 | return $this; |
| 368 | } |
| 369 | |
| 370 | /** |
| 371 | * @return string |
| 372 | */ |
| 373 | public function getCampaignBuilder() { |
| 374 | return $this->campaignBuilder; |
| 375 | } |
| 376 | |
| 377 | /** |
| 378 | * @param string $inheritUrlParameters |
| 379 | * @return Campaign |
| 380 | */ |
| 381 | public function setCampaignBuilder($campaignBuilder) { |
| 382 | $this->campaignBuilder = $campaignBuilder; |
| 383 | return $this; |
| 384 | } |
| 385 | |
| 386 | } |