3 declare(strict_types=1);
23 use DateTimeImmutable;
184 if (is_null($this->
id)) {
186 $data = $this->
raw(self::FIELD_ID);
187 if (is_null($data)) {
190 $this->
id = (string) $data;
204 if (is_null($this->version)) {
206 $data = $this->
raw(self::FIELD_VERSION);
207 if (is_null($data)) {
210 $this->version = (int) $data;
224 if (is_null($this->createdAt)) {
226 $data = $this->
raw(self::FIELD_CREATED_AT);
227 if (is_null($data)) {
231 if (
false === $data) {
234 $this->createdAt = $data;
248 if (is_null($this->lastModifiedAt)) {
250 $data = $this->
raw(self::FIELD_LAST_MODIFIED_AT);
251 if (is_null($data)) {
255 if (
false === $data) {
258 $this->lastModifiedAt = $data;
272 if (is_null($this->lastModifiedBy)) {
274 $data = $this->
raw(self::FIELD_LAST_MODIFIED_BY);
275 if (is_null($data)) {
293 if (is_null($this->createdBy)) {
295 $data = $this->
raw(self::FIELD_CREATED_BY);
296 if (is_null($data)) {
315 if (is_null($this->sequenceNumber)) {
317 $data = $this->
raw(self::FIELD_SEQUENCE_NUMBER);
318 if (is_null($data)) {
321 $this->sequenceNumber = (int) $data;
335 if (is_null($this->resource)) {
337 $data = $this->
raw(self::FIELD_RESOURCE);
338 if (is_null($data)) {
342 $this->resource = $className::of($data);
356 if (is_null($this->resourceVersion)) {
358 $data = $this->
raw(self::FIELD_RESOURCE_VERSION);
359 if (is_null($data)) {
362 $this->resourceVersion = (int) $data;
376 if (is_null($this->type)) {
378 $data = $this->
raw(self::FIELD_TYPE);
379 if (is_null($data)) {
382 $this->type = (string) $data;
396 if (is_null($this->resourceUserProvidedIdentifiers)) {
398 $data = $this->
raw(self::FIELD_RESOURCE_USER_PROVIDED_IDENTIFIERS);
399 if (is_null($data)) {
417 if (is_null($this->lineItemId)) {
419 $data = $this->
raw(self::FIELD_LINE_ITEM_ID);
420 if (is_null($data)) {
423 $this->lineItemId = (string) $data;
437 if (is_null($this->lineItemKey)) {
439 $data = $this->
raw(self::FIELD_LINE_ITEM_KEY);
440 if (is_null($data)) {
443 $this->lineItemKey = (string) $data;
457 if (is_null($this->transitionDate)) {
459 $data = $this->
raw(self::FIELD_TRANSITION_DATE);
460 if (is_null($data)) {
464 if (
false === $data) {
467 $this->transitionDate = $data;
481 if (is_null($this->quantity)) {
483 $data = $this->
raw(self::FIELD_QUANTITY);
484 if (is_null($data)) {
487 $this->quantity = (int) $data;
501 if (is_null($this->fromState)) {
503 $data = $this->
raw(self::FIELD_FROM_STATE);
504 if (is_null($data)) {
522 if (is_null($this->toState)) {
524 $data = $this->
raw(self::FIELD_TO_STATE);
525 if (is_null($data)) {
665 #[\ReturnTypeWillChange]
680 return (
object) $data;