PluginProbe ʕ •ᴥ•ʔ
Booking for Appointments and Events Calendar – Amelia / 1.2.20
Booking for Appointments and Events Calendar – Amelia v1.2.20
2.4.3 2.4.2 2.4.1 2.4 trunk 1.2.1 1.2.10 1.2.11 1.2.12 1.2.13 1.2.14 1.2.15 1.2.16 1.2.17 1.2.18 1.2.19 1.2.2 1.2.20 1.2.21 1.2.22 1.2.23 1.2.24 1.2.25 1.2.26 1.2.27 1.2.28 1.2.29 1.2.3 1.2.30 1.2.31 1.2.32 1.2.33 1.2.34 1.2.35 1.2.36 1.2.37 1.2.38 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.1.3 2.2 2.2.1 2.3
ameliabooking / src / Domain / Entity / Notification / NotificationLog.php
ameliabooking / src / Domain / Entity / Notification Last commit date
Notification.php 2 years ago NotificationLog.php 4 years ago
NotificationLog.php
206 lines
1 <?php
2
3 namespace AmeliaBooking\Domain\Entity\Notification;
4
5 use AmeliaBooking\Domain\ValueObjects\BooleanValueObject;
6 use AmeliaBooking\Domain\ValueObjects\DateTime\DateTimeValue;
7 use AmeliaBooking\Domain\ValueObjects\Json;
8 use AmeliaBooking\Domain\ValueObjects\Number\Integer\Id;
9
10 /**
11 * Class NotificationLog
12 *
13 * @package AmeliaBooking\Domain\Entity\Notification
14 */
15 class NotificationLog
16 {
17 /** @var Id */
18 private $id;
19
20 /** @var Id */
21 private $notificationsId;
22
23 /** @var Id */
24 private $userId;
25
26 /** @var Id */
27 private $appointmentId;
28
29 /** @var Id */
30 private $eventId;
31
32 /** @var Id */
33 private $packageCustomerId;
34
35 /** @var DateTimeValue */
36 private $sentDateTime;
37
38 /** @var BooleanValueObject */
39 private $sent;
40
41 /** @var Json */
42 private $data;
43
44 /**
45 * @return Id
46 */
47 public function getId()
48 {
49 return $this->id;
50 }
51
52 /**
53 * @param Id $id
54 */
55 public function setId(Id $id)
56 {
57 $this->id = $id;
58 }
59
60 /**
61 * @return Id
62 */
63 public function getNotificationsId()
64 {
65 return $this->notificationsId;
66 }
67
68 /**
69 * @param Id $notificationsId
70 */
71 public function setNotificationsId($notificationsId)
72 {
73 $this->notificationsId = $notificationsId;
74 }
75
76 /**
77 * @return Id
78 */
79 public function getUserId()
80 {
81 return $this->userId;
82 }
83
84 /**
85 * @param Id $userId
86 */
87 public function setUserId($userId)
88 {
89 $this->userId = $userId;
90 }
91
92 /**
93 * @return Id
94 */
95 public function getAppointmentId()
96 {
97 return $this->appointmentId;
98 }
99
100 /**
101 * @param Id $appointmentId
102 */
103 public function setAppointmentId($appointmentId)
104 {
105 $this->appointmentId = $appointmentId;
106 }
107
108 /**
109 * @return Id
110 */
111 public function getEventId()
112 {
113 return $this->eventId;
114 }
115
116 /**
117 * @param Id $eventId
118 */
119 public function setEventId($eventId)
120 {
121 $this->eventId = $eventId;
122 }
123
124 /**
125 * @return Id
126 */
127 public function getPackageCustomerId()
128 {
129 return $this->packageCustomerId;
130 }
131
132 /**
133 * @param Id $packageCustomerId
134 */
135 public function setPackageCustomerId($packageCustomerId)
136 {
137 $this->packageCustomerId = $packageCustomerId;
138 }
139
140 /**
141 * @return DateTimeValue
142 */
143 public function getSentDateTime()
144 {
145 return $this->sentDateTime;
146 }
147
148 /**
149 * @param DateTimeValue $sentDateTime
150 */
151 public function setSentDateTime($sentDateTime)
152 {
153 $this->sentDateTime = $sentDateTime;
154 }
155
156 /**
157 * @return BooleanValueObject
158 */
159 public function getSent()
160 {
161 return $this->sent;
162 }
163
164 /**
165 * @param BooleanValueObject $sent
166 */
167 public function setSent($sent)
168 {
169 $this->sent = $sent;
170 }
171
172 /**
173 * @return Json
174 */
175 public function getData()
176 {
177 return $this->data;
178 }
179
180 /**
181 * @param Json $data
182 */
183 public function setData($data)
184 {
185 $this->data = $data;
186 }
187
188 /**
189 * @return array
190 */
191 public function toArray()
192 {
193 return [
194 'id' => $this->getId() ? $this->getId()->getValue() : null,
195 'notificationId' => $this->getNotificationsId()->getValue(),
196 'userId' => $this->getUserId()->getValue(),
197 'appointmentId' => $this->getAppointmentId() ? $this->getAppointmentId()->getValue() : null,
198 'eventId' => $this->getEventId() ? $this->getEventId()->getValue() : null,
199 'packageCustomerId' => $this->getPackageCustomerId() ? $this->getPackageCustomerId()->getValue() : null,
200 'sentDateTime' => $this->getSentDateTime()->getValue(),
201 'sent' => $this->getSent() ? $this->getSent()->getValue() : null,
202 'data' => $this->getData() ? $this->getData()->getValue() : null,
203 ];
204 }
205 }
206