Application.php
1 year ago
ApplicationCollection.php
1 year ago
BaseObject.php
1 year ago
Campaign.php
1 year 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
WebSdkInitOptions.php
1 year ago
User.php
107 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 users. |
| 9 | * |
| 10 | * See {@link https://www.wonderpush.com/docs/concepts/user} |
| 11 | * @codeCoverageIgnore |
| 12 | */ |
| 13 | class User extends BaseObject { |
| 14 | |
| 15 | /** @var string */ |
| 16 | private $id; |
| 17 | /** @var string */ |
| 18 | private $applicationId; |
| 19 | /** @var integer */ |
| 20 | private $creationDate; |
| 21 | /** @var integer */ |
| 22 | private $updateDate; |
| 23 | /** @var array */ |
| 24 | private $custom; |
| 25 | |
| 26 | /** |
| 27 | * @return string |
| 28 | */ |
| 29 | public function getId() { |
| 30 | return $this->id; |
| 31 | } |
| 32 | |
| 33 | /** |
| 34 | * @param string $id |
| 35 | * @return User |
| 36 | */ |
| 37 | public function setId($id) { |
| 38 | $this->id = $id; |
| 39 | return $this; |
| 40 | } |
| 41 | |
| 42 | /** |
| 43 | * @return string |
| 44 | */ |
| 45 | public function getApplicationId() { |
| 46 | return $this->applicationId; |
| 47 | } |
| 48 | |
| 49 | /** |
| 50 | * @param string $applicationId |
| 51 | * @return User |
| 52 | */ |
| 53 | public function setApplicationId($applicationId) { |
| 54 | $this->applicationId = $applicationId; |
| 55 | return $this; |
| 56 | } |
| 57 | |
| 58 | /** |
| 59 | * @return integer |
| 60 | */ |
| 61 | public function getCreationDate() { |
| 62 | return $this->creationDate; |
| 63 | } |
| 64 | |
| 65 | /** |
| 66 | * @param integer $creationDate |
| 67 | * @return User |
| 68 | */ |
| 69 | public function setCreationDate($creationDate) { |
| 70 | $this->creationDate = $creationDate; |
| 71 | return $this; |
| 72 | } |
| 73 | |
| 74 | /** |
| 75 | * @return integer |
| 76 | */ |
| 77 | public function getUpdateDate() { |
| 78 | return $this->updateDate; |
| 79 | } |
| 80 | |
| 81 | /** |
| 82 | * @param integer $updateDate |
| 83 | * @return User |
| 84 | */ |
| 85 | public function setUpdateDate($updateDate) { |
| 86 | $this->updateDate = $updateDate; |
| 87 | return $this; |
| 88 | } |
| 89 | |
| 90 | /** |
| 91 | * @return array |
| 92 | */ |
| 93 | public function getCustom() { |
| 94 | return $this->custom; |
| 95 | } |
| 96 | |
| 97 | /** |
| 98 | * @param array $custom |
| 99 | * @return User |
| 100 | */ |
| 101 | public function setCustom($custom) { |
| 102 | $this->custom = $custom; |
| 103 | return $this; |
| 104 | } |
| 105 | |
| 106 | } |
| 107 |