3 declare(strict_types=1);
27 use DateTimeImmutable;
291 if (is_null($this->
id)) {
293 $data = $this->
raw(self::FIELD_ID);
294 if (is_null($data)) {
297 $this->
id = (string) $data;
311 if (is_null($this->version)) {
313 $data = $this->
raw(self::FIELD_VERSION);
314 if (is_null($data)) {
317 $this->version = (int) $data;
331 if (is_null($this->createdAt)) {
333 $data = $this->
raw(self::FIELD_CREATED_AT);
334 if (is_null($data)) {
338 if (
false === $data) {
341 $this->createdAt = $data;
355 if (is_null($this->lastModifiedAt)) {
357 $data = $this->
raw(self::FIELD_LAST_MODIFIED_AT);
358 if (is_null($data)) {
362 if (
false === $data) {
365 $this->lastModifiedAt = $data;
379 if (is_null($this->key)) {
381 $data = $this->
raw(self::FIELD_KEY);
382 if (is_null($data)) {
385 $this->key = (string) $data;
400 if (is_null($this->customerNumber)) {
402 $data = $this->
raw(self::FIELD_CUSTOMER_NUMBER);
403 if (is_null($data)) {
406 $this->customerNumber = (string) $data;
420 if (is_null($this->externalId)) {
422 $data = $this->
raw(self::FIELD_EXTERNAL_ID);
423 if (is_null($data)) {
426 $this->externalId = (string) $data;
440 if (is_null($this->lastModifiedBy)) {
442 $data = $this->
raw(self::FIELD_LAST_MODIFIED_BY);
443 if (is_null($data)) {
461 if (is_null($this->createdBy)) {
463 $data = $this->
raw(self::FIELD_CREATED_BY);
464 if (is_null($data)) {
483 if (is_null($this->email)) {
485 $data = $this->
raw(self::FIELD_EMAIL);
486 if (is_null($data)) {
489 $this->email = (string) $data;
503 if (is_null($this->password)) {
505 $data = $this->
raw(self::FIELD_PASSWORD);
506 if (is_null($data)) {
509 $this->password = (string) $data;
523 if (is_null($this->firstName)) {
525 $data = $this->
raw(self::FIELD_FIRST_NAME);
526 if (is_null($data)) {
529 $this->firstName = (string) $data;
543 if (is_null($this->lastName)) {
545 $data = $this->
raw(self::FIELD_LAST_NAME);
546 if (is_null($data)) {
549 $this->lastName = (string) $data;
563 if (is_null($this->middleName)) {
565 $data = $this->
raw(self::FIELD_MIDDLE_NAME);
566 if (is_null($data)) {
569 $this->middleName = (string) $data;
583 if (is_null($this->title)) {
585 $data = $this->
raw(self::FIELD_TITLE);
586 if (is_null($data)) {
589 $this->title = (string) $data;
603 if (is_null($this->dateOfBirth)) {
605 $data = $this->
raw(self::FIELD_DATE_OF_BIRTH);
606 if (is_null($data)) {
610 if (
false === $data) {
613 $this->dateOfBirth = $data;
627 if (is_null($this->companyName)) {
629 $data = $this->
raw(self::FIELD_COMPANY_NAME);
630 if (is_null($data)) {
633 $this->companyName = (string) $data;
647 if (is_null($this->vatId)) {
649 $data = $this->
raw(self::FIELD_VAT_ID);
650 if (is_null($data)) {
653 $this->vatId = (string) $data;
667 if (is_null($this->addresses)) {
669 $data = $this->
raw(self::FIELD_ADDRESSES);
670 if (is_null($data)) {
687 if (is_null($this->defaultShippingAddressId)) {
689 $data = $this->
raw(self::FIELD_DEFAULT_SHIPPING_ADDRESS_ID);
690 if (is_null($data)) {
693 $this->defaultShippingAddressId = (string) $data;
707 if (is_null($this->shippingAddressIds)) {
709 $data = $this->
raw(self::FIELD_SHIPPING_ADDRESS_IDS);
710 if (is_null($data)) {
713 $this->shippingAddressIds = $data;
727 if (is_null($this->defaultBillingAddressId)) {
729 $data = $this->
raw(self::FIELD_DEFAULT_BILLING_ADDRESS_ID);
730 if (is_null($data)) {
733 $this->defaultBillingAddressId = (string) $data;
747 if (is_null($this->billingAddressIds)) {
749 $data = $this->
raw(self::FIELD_BILLING_ADDRESS_IDS);
750 if (is_null($data)) {
753 $this->billingAddressIds = $data;
767 if (is_null($this->isEmailVerified)) {
769 $data = $this->
raw(self::FIELD_IS_EMAIL_VERIFIED);
770 if (is_null($data)) {
773 $this->isEmailVerified = (bool) $data;
787 if (is_null($this->customerGroup)) {
789 $data = $this->
raw(self::FIELD_CUSTOMER_GROUP);
790 if (is_null($data)) {
808 if (is_null($this->custom)) {
810 $data = $this->
raw(self::FIELD_CUSTOM);
811 if (is_null($data)) {
829 if (is_null($this->locale)) {
831 $data = $this->
raw(self::FIELD_LOCALE);
832 if (is_null($data)) {
835 $this->locale = (string) $data;
849 if (is_null($this->salutation)) {
851 $data = $this->
raw(self::FIELD_SALUTATION);
852 if (is_null($data)) {
855 $this->salutation = (string) $data;
873 if (is_null($this->stores)) {
875 $data = $this->
raw(self::FIELD_STORES);
876 if (is_null($data)) {
893 if (is_null($this->authenticationMode)) {
895 $data = $this->
raw(self::FIELD_AUTHENTICATION_MODE);
896 if (is_null($data)) {
899 $this->authenticationMode = (string) $data;
1147 #[\ReturnTypeWillChange]
1162 return (
object) $data;