3declare(strict_types=1);
149 if (is_null($this->
id)) {
151 $data = $this->
raw(self::FIELD_ID);
152 if (is_null($data)) {
155 $this->
id = (string) $data;
169 if (is_null($this->version)) {
171 $data = $this->
raw(self::FIELD_VERSION);
172 if (is_null($data)) {
175 $this->version = (int) $data;
189 if (is_null($this->createdAt)) {
191 $data = $this->
raw(self::FIELD_CREATED_AT);
192 if (is_null($data)) {
195 $data = DateTimeImmutable::createFromFormat(MapperFactory::DATETIME_FORMAT, $data);
196 if (
false === $data) {
199 $this->createdAt = $data;
213 if (is_null($this->lastModifiedAt)) {
215 $data = $this->
raw(self::FIELD_LAST_MODIFIED_AT);
216 if (is_null($data)) {
219 $data = DateTimeImmutable::createFromFormat(MapperFactory::DATETIME_FORMAT, $data);
220 if (
false === $data) {
223 $this->lastModifiedAt = $data;
237 if (is_null($this->lastModifiedBy)) {
239 $data = $this->
raw(self::FIELD_LAST_MODIFIED_BY);
240 if (is_null($data)) {
244 $this->lastModifiedBy = LastModifiedByModel::of($data);
258 if (is_null($this->createdBy)) {
260 $data = $this->
raw(self::FIELD_CREATED_BY);
261 if (is_null($data)) {
265 $this->createdBy = CreatedByModel::of($data);
279 if (is_null($this->changes)) {
281 $data = $this->
raw(self::FIELD_CHANGES);
282 if (is_null($data)) {
299 if (is_null($this->destination)) {
301 $data = $this->
raw(self::FIELD_DESTINATION);
302 if (is_null($data)) {
306 $this->destination = $className::of($data);
320 if (is_null($this->key)) {
322 $data = $this->
raw(self::FIELD_KEY);
323 if (is_null($data)) {
326 $this->key = (string) $data;
340 if (is_null($this->messages)) {
342 $data = $this->
raw(self::FIELD_MESSAGES);
343 if (is_null($data)) {
360 if (is_null($this->events)) {
362 $data = $this->
raw(self::FIELD_EVENTS);
363 if (is_null($data)) {
380 if (is_null($this->format)) {
382 $data = $this->
raw(self::FIELD_FORMAT);
383 if (is_null($data)) {
387 $this->format = $className::of($data);
401 if (is_null($this->status)) {
403 $data = $this->
raw(self::FIELD_STATUS);
404 if (is_null($data)) {
407 $this->status = (string) $data;
519 #[\ReturnTypeWillChange]
530 return (
object) $data;