3 declare(strict_types=1);
22 use DateTimeImmutable;
167 if (is_null($this->
id)) {
169 $data = $this->
raw(self::FIELD_ID);
170 if (is_null($data)) {
173 $this->
id = (string) $data;
187 if (is_null($this->version)) {
189 $data = $this->
raw(self::FIELD_VERSION);
190 if (is_null($data)) {
193 $this->version = (int) $data;
207 if (is_null($this->createdAt)) {
209 $data = $this->
raw(self::FIELD_CREATED_AT);
210 if (is_null($data)) {
214 if (
false === $data) {
217 $this->createdAt = $data;
231 if (is_null($this->lastModifiedAt)) {
233 $data = $this->
raw(self::FIELD_LAST_MODIFIED_AT);
234 if (is_null($data)) {
238 if (
false === $data) {
241 $this->lastModifiedAt = $data;
255 if (is_null($this->lastModifiedBy)) {
257 $data = $this->
raw(self::FIELD_LAST_MODIFIED_BY);
258 if (is_null($data)) {
276 if (is_null($this->createdBy)) {
278 $data = $this->
raw(self::FIELD_CREATED_BY);
279 if (is_null($data)) {
298 if (is_null($this->sequenceNumber)) {
300 $data = $this->
raw(self::FIELD_SEQUENCE_NUMBER);
301 if (is_null($data)) {
304 $this->sequenceNumber = (int) $data;
318 if (is_null($this->resource)) {
320 $data = $this->
raw(self::FIELD_RESOURCE);
321 if (is_null($data)) {
325 $this->resource = $className::of($data);
339 if (is_null($this->resourceVersion)) {
341 $data = $this->
raw(self::FIELD_RESOURCE_VERSION);
342 if (is_null($data)) {
345 $this->resourceVersion = (int) $data;
359 if (is_null($this->type)) {
361 $data = $this->
raw(self::FIELD_TYPE);
362 if (is_null($data)) {
365 $this->type = (string) $data;
379 if (is_null($this->resourceUserProvidedIdentifiers)) {
381 $data = $this->
raw(self::FIELD_RESOURCE_USER_PROVIDED_IDENTIFIERS);
382 if (is_null($data)) {
400 if (is_null($this->deliveryId)) {
402 $data = $this->
raw(self::FIELD_DELIVERY_ID);
403 if (is_null($data)) {
406 $this->deliveryId = (string) $data;
420 if (is_null($this->items)) {
422 $data = $this->
raw(self::FIELD_ITEMS);
423 if (is_null($data)) {
440 if (is_null($this->oldItems)) {
442 $data = $this->
raw(self::FIELD_OLD_ITEMS);
443 if (is_null($data)) {
460 if (is_null($this->shippingKey)) {
462 $data = $this->
raw(self::FIELD_SHIPPING_KEY);
463 if (is_null($data)) {
466 $this->shippingKey = (string) $data;
586 #[\ReturnTypeWillChange]
597 return (
object) $data;