3 declare(strict_types=1);
21 use DateTimeImmutable;
141 if (is_null($this->
id)) {
143 $data = $this->
raw(self::FIELD_ID);
144 if (is_null($data)) {
147 $this->
id = (string) $data;
161 if (is_null($this->version)) {
163 $data = $this->
raw(self::FIELD_VERSION);
164 if (is_null($data)) {
167 $this->version = (int) $data;
181 if (is_null($this->createdAt)) {
183 $data = $this->
raw(self::FIELD_CREATED_AT);
184 if (is_null($data)) {
188 if (
false === $data) {
191 $this->createdAt = $data;
205 if (is_null($this->lastModifiedAt)) {
207 $data = $this->
raw(self::FIELD_LAST_MODIFIED_AT);
208 if (is_null($data)) {
212 if (
false === $data) {
215 $this->lastModifiedAt = $data;
229 if (is_null($this->lastModifiedBy)) {
231 $data = $this->
raw(self::FIELD_LAST_MODIFIED_BY);
232 if (is_null($data)) {
250 if (is_null($this->createdBy)) {
252 $data = $this->
raw(self::FIELD_CREATED_BY);
253 if (is_null($data)) {
271 if (is_null($this->changes)) {
273 $data = $this->
raw(self::FIELD_CHANGES);
274 if (is_null($data)) {
291 if (is_null($this->destination)) {
293 $data = $this->
raw(self::FIELD_DESTINATION);
294 if (is_null($data)) {
298 $this->destination = $className::of($data);
312 if (is_null($this->key)) {
314 $data = $this->
raw(self::FIELD_KEY);
315 if (is_null($data)) {
318 $this->key = (string) $data;
332 if (is_null($this->messages)) {
334 $data = $this->
raw(self::FIELD_MESSAGES);
335 if (is_null($data)) {
352 if (is_null($this->format)) {
354 $data = $this->
raw(self::FIELD_FORMAT);
355 if (is_null($data)) {
359 $this->format = $className::of($data);
373 if (is_null($this->status)) {
375 $data = $this->
raw(self::FIELD_STATUS);
376 if (is_null($data)) {
379 $this->status = (string) $data;
483 #[\ReturnTypeWillChange]
494 return (
object) $data;