3 declare(strict_types=1);
23 use DateTimeImmutable;
168 if (is_null($this->
id)) {
170 $data = $this->
raw(self::FIELD_ID);
171 if (is_null($data)) {
174 $this->
id = (string) $data;
188 if (is_null($this->version)) {
190 $data = $this->
raw(self::FIELD_VERSION);
191 if (is_null($data)) {
194 $this->version = (int) $data;
208 if (is_null($this->createdAt)) {
210 $data = $this->
raw(self::FIELD_CREATED_AT);
211 if (is_null($data)) {
215 if (
false === $data) {
218 $this->createdAt = $data;
232 if (is_null($this->lastModifiedAt)) {
234 $data = $this->
raw(self::FIELD_LAST_MODIFIED_AT);
235 if (is_null($data)) {
239 if (
false === $data) {
242 $this->lastModifiedAt = $data;
256 if (is_null($this->lastModifiedBy)) {
258 $data = $this->
raw(self::FIELD_LAST_MODIFIED_BY);
259 if (is_null($data)) {
277 if (is_null($this->createdBy)) {
279 $data = $this->
raw(self::FIELD_CREATED_BY);
280 if (is_null($data)) {
299 if (is_null($this->sequenceNumber)) {
301 $data = $this->
raw(self::FIELD_SEQUENCE_NUMBER);
302 if (is_null($data)) {
305 $this->sequenceNumber = (int) $data;
319 if (is_null($this->resource)) {
321 $data = $this->
raw(self::FIELD_RESOURCE);
322 if (is_null($data)) {
326 $this->resource = $className::of($data);
340 if (is_null($this->resourceVersion)) {
342 $data = $this->
raw(self::FIELD_RESOURCE_VERSION);
343 if (is_null($data)) {
346 $this->resourceVersion = (int) $data;
360 if (is_null($this->type)) {
362 $data = $this->
raw(self::FIELD_TYPE);
363 if (is_null($data)) {
366 $this->type = (string) $data;
380 if (is_null($this->resourceUserProvidedIdentifiers)) {
382 $data = $this->
raw(self::FIELD_RESOURCE_USER_PROVIDED_IDENTIFIERS);
383 if (is_null($data)) {
401 if (is_null($this->deliveryId)) {
403 $data = $this->
raw(self::FIELD_DELIVERY_ID);
404 if (is_null($data)) {
407 $this->deliveryId = (string) $data;
421 if (is_null($this->parcelId)) {
423 $data = $this->
raw(self::FIELD_PARCEL_ID);
424 if (is_null($data)) {
427 $this->parcelId = (string) $data;
441 if (is_null($this->measurements)) {
443 $data = $this->
raw(self::FIELD_MEASUREMENTS);
444 if (is_null($data)) {
462 if (is_null($this->shippingKey)) {
464 $data = $this->
raw(self::FIELD_SHIPPING_KEY);
465 if (is_null($data)) {
468 $this->shippingKey = (string) $data;
588 #[\ReturnTypeWillChange]
599 return (
object) $data;