Application.php
10 months ago
ApplicationBrevoContactSync.php
10 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
WebDomainSdkConfig.php
104 lines
| 1 | <?php |
| 2 | |
| 3 | namespace WonderPush\Obj; |
| 4 | |
| 5 | if (count(get_included_files()) === 1) { http_response_code(403); exit(); } // Prevent direct access |
| 6 | |
| 7 | /** |
| 8 | * DTO for web domain SDK configuration. |
| 9 | * @codeCoverageIgnore |
| 10 | */ |
| 11 | class WebDomainSdkConfig extends BaseObject { |
| 12 | |
| 13 | /** @var string */ |
| 14 | private $notificationDefaultUrl; |
| 15 | /** @var string */ |
| 16 | private $notificationIcon; |
| 17 | /** @var string */ |
| 18 | private $applicationName; |
| 19 | /** @var string */ |
| 20 | private $frameUrl; |
| 21 | /** @var string */ |
| 22 | private $serviceWorkerUrl; |
| 23 | |
| 24 | /** |
| 25 | * @return string |
| 26 | */ |
| 27 | public function getNotificationDefaultUrl() { |
| 28 | return $this->notificationDefaultUrl; |
| 29 | } |
| 30 | |
| 31 | /** |
| 32 | * @param string $notificationDefaultUrl |
| 33 | * @return WebDomainSdkConfig |
| 34 | */ |
| 35 | public function setNotificationDefaultUrl($notificationDefaultUrl) { |
| 36 | $this->notificationDefaultUrl = $notificationDefaultUrl; |
| 37 | return $this; |
| 38 | } |
| 39 | |
| 40 | /** |
| 41 | * @return string |
| 42 | */ |
| 43 | public function getNotificationIcon() { |
| 44 | return $this->notificationIcon; |
| 45 | } |
| 46 | |
| 47 | /** |
| 48 | * @param string $notificationIcon |
| 49 | * @return WebDomainSdkConfig |
| 50 | */ |
| 51 | public function setNotificationIcon($notificationIcon) { |
| 52 | $this->notificationIcon = $notificationIcon; |
| 53 | return $this; |
| 54 | } |
| 55 | |
| 56 | /** |
| 57 | * @return string |
| 58 | */ |
| 59 | public function getApplicationName() { |
| 60 | return $this->applicationName; |
| 61 | } |
| 62 | |
| 63 | /** |
| 64 | * @param string $applicationName |
| 65 | * @return WebDomainSdkConfig |
| 66 | */ |
| 67 | public function setApplicationName($applicationName) { |
| 68 | $this->applicationName = $applicationName; |
| 69 | return $this; |
| 70 | } |
| 71 | |
| 72 | /** |
| 73 | * @return string |
| 74 | */ |
| 75 | public function getFrameUrl() { |
| 76 | return $this->frameUrl; |
| 77 | } |
| 78 | |
| 79 | /** |
| 80 | * @param string $frameUrl |
| 81 | * @return WebDomainSdkConfig |
| 82 | */ |
| 83 | public function setFrameUrl($frameUrl) { |
| 84 | $this->frameUrl = $frameUrl; |
| 85 | return $this; |
| 86 | } |
| 87 | |
| 88 | /** |
| 89 | * @return string |
| 90 | */ |
| 91 | public function getServiceWorkerUrl() { |
| 92 | return $this->serviceWorkerUrl; |
| 93 | } |
| 94 | |
| 95 | /** |
| 96 | * @param string $serviceWorkerUrl |
| 97 | * @return WebDomainSdkConfig |
| 98 | */ |
| 99 | public function setServiceWorkerUrl($serviceWorkerUrl) { |
| 100 | $this->serviceWorkerUrl = $serviceWorkerUrl; |
| 101 | return $this; |
| 102 | } |
| 103 | |
| 104 | } |