3 declare(strict_types=1);
22 use DateTimeImmutable;
175 if (is_null($this->
id)) {
177 $data = $this->
raw(self::FIELD_ID);
178 if (is_null($data)) {
181 $this->
id = (string) $data;
195 if (is_null($this->version)) {
197 $data = $this->
raw(self::FIELD_VERSION);
198 if (is_null($data)) {
201 $this->version = (int) $data;
215 if (is_null($this->createdAt)) {
217 $data = $this->
raw(self::FIELD_CREATED_AT);
218 if (is_null($data)) {
222 if (
false === $data) {
225 $this->createdAt = $data;
239 if (is_null($this->lastModifiedAt)) {
241 $data = $this->
raw(self::FIELD_LAST_MODIFIED_AT);
242 if (is_null($data)) {
246 if (
false === $data) {
249 $this->lastModifiedAt = $data;
263 if (is_null($this->lastModifiedBy)) {
265 $data = $this->
raw(self::FIELD_LAST_MODIFIED_BY);
266 if (is_null($data)) {
284 if (is_null($this->createdBy)) {
286 $data = $this->
raw(self::FIELD_CREATED_BY);
287 if (is_null($data)) {
306 if (is_null($this->sequenceNumber)) {
308 $data = $this->
raw(self::FIELD_SEQUENCE_NUMBER);
309 if (is_null($data)) {
312 $this->sequenceNumber = (int) $data;
326 if (is_null($this->resource)) {
328 $data = $this->
raw(self::FIELD_RESOURCE);
329 if (is_null($data)) {
333 $this->resource = $className::of($data);
347 if (is_null($this->resourceVersion)) {
349 $data = $this->
raw(self::FIELD_RESOURCE_VERSION);
350 if (is_null($data)) {
353 $this->resourceVersion = (int) $data;
367 if (is_null($this->type)) {
369 $data = $this->
raw(self::FIELD_TYPE);
370 if (is_null($data)) {
373 $this->type = (string) $data;
387 if (is_null($this->resourceUserProvidedIdentifiers)) {
389 $data = $this->
raw(self::FIELD_RESOURCE_USER_PROVIDED_IDENTIFIERS);
390 if (is_null($data)) {
408 if (is_null($this->parcelId)) {
410 $data = $this->
raw(self::FIELD_PARCEL_ID);
411 if (is_null($data)) {
414 $this->parcelId = (string) $data;
428 if (is_null($this->deliveryId)) {
430 $data = $this->
raw(self::FIELD_DELIVERY_ID);
431 if (is_null($data)) {
434 $this->deliveryId = (string) $data;
448 if (is_null($this->items)) {
450 $data = $this->
raw(self::FIELD_ITEMS);
451 if (is_null($data)) {
468 if (is_null($this->oldItems)) {
470 $data = $this->
raw(self::FIELD_OLD_ITEMS);
471 if (is_null($data)) {
488 if (is_null($this->shippingKey)) {
490 $data = $this->
raw(self::FIELD_SHIPPING_KEY);
491 if (is_null($data)) {
494 $this->shippingKey = (string) $data;
622 #[\ReturnTypeWillChange]
633 return (
object) $data;