3 declare(strict_types=1);
22 use DateTimeImmutable;
238 if (is_null($this->key)) {
240 $data = $this->
raw(self::FIELD_KEY);
241 if (is_null($data)) {
244 $this->key = (string) $data;
258 if (is_null($this->customerNumber)) {
260 $data = $this->
raw(self::FIELD_CUSTOMER_NUMBER);
261 if (is_null($data)) {
264 $this->customerNumber = (string) $data;
278 if (is_null($this->email)) {
280 $data = $this->
raw(self::FIELD_EMAIL);
281 if (is_null($data)) {
284 $this->email = (string) $data;
298 if (is_null($this->password)) {
300 $data = $this->
raw(self::FIELD_PASSWORD);
301 if (is_null($data)) {
304 $this->password = (string) $data;
318 if (is_null($this->stores)) {
320 $data = $this->
raw(self::FIELD_STORES);
321 if (is_null($data)) {
338 if (is_null($this->firstName)) {
340 $data = $this->
raw(self::FIELD_FIRST_NAME);
341 if (is_null($data)) {
344 $this->firstName = (string) $data;
358 if (is_null($this->lastName)) {
360 $data = $this->
raw(self::FIELD_LAST_NAME);
361 if (is_null($data)) {
364 $this->lastName = (string) $data;
378 if (is_null($this->middleName)) {
380 $data = $this->
raw(self::FIELD_MIDDLE_NAME);
381 if (is_null($data)) {
384 $this->middleName = (string) $data;
398 if (is_null($this->title)) {
400 $data = $this->
raw(self::FIELD_TITLE);
401 if (is_null($data)) {
404 $this->title = (string) $data;
418 if (is_null($this->salutation)) {
420 $data = $this->
raw(self::FIELD_SALUTATION);
421 if (is_null($data)) {
424 $this->salutation = (string) $data;
438 if (is_null($this->externalId)) {
440 $data = $this->
raw(self::FIELD_EXTERNAL_ID);
441 if (is_null($data)) {
444 $this->externalId = (string) $data;
458 if (is_null($this->dateOfBirth)) {
460 $data = $this->
raw(self::FIELD_DATE_OF_BIRTH);
461 if (is_null($data)) {
465 if (
false === $data) {
468 $this->dateOfBirth = $data;
482 if (is_null($this->companyName)) {
484 $data = $this->
raw(self::FIELD_COMPANY_NAME);
485 if (is_null($data)) {
488 $this->companyName = (string) $data;
502 if (is_null($this->vatId)) {
504 $data = $this->
raw(self::FIELD_VAT_ID);
505 if (is_null($data)) {
508 $this->vatId = (string) $data;
522 if (is_null($this->isEmailVerified)) {
524 $data = $this->
raw(self::FIELD_IS_EMAIL_VERIFIED);
525 if (is_null($data)) {
528 $this->isEmailVerified = (bool) $data;
543 if (is_null($this->customerGroup)) {
545 $data = $this->
raw(self::FIELD_CUSTOMER_GROUP);
546 if (is_null($data)) {
564 if (is_null($this->addresses)) {
566 $data = $this->
raw(self::FIELD_ADDRESSES);
567 if (is_null($data)) {
584 if (is_null($this->defaultBillingAddress)) {
586 $data = $this->
raw(self::FIELD_DEFAULT_BILLING_ADDRESS);
587 if (is_null($data)) {
590 $this->defaultBillingAddress = (int) $data;
604 if (is_null($this->billingAddresses)) {
606 $data = $this->
raw(self::FIELD_BILLING_ADDRESSES);
607 if (is_null($data)) {
610 $this->billingAddresses = $data;
624 if (is_null($this->defaultShippingAddress)) {
626 $data = $this->
raw(self::FIELD_DEFAULT_SHIPPING_ADDRESS);
627 if (is_null($data)) {
630 $this->defaultShippingAddress = (int) $data;
644 if (is_null($this->shippingAddresses)) {
646 $data = $this->
raw(self::FIELD_SHIPPING_ADDRESSES);
647 if (is_null($data)) {
650 $this->shippingAddresses = $data;
664 if (is_null($this->locale)) {
666 $data = $this->
raw(self::FIELD_LOCALE);
667 if (is_null($data)) {
670 $this->locale = (string) $data;
684 if (is_null($this->custom)) {
686 $data = $this->
raw(self::FIELD_CUSTOM);
687 if (is_null($data)) {
708 if (is_null($this->authenticationMode)) {
710 $data = $this->
raw(self::FIELD_AUTHENTICATION_MODE);
711 if (is_null($data)) {
714 $this->authenticationMode = (string) $data;
914 #[\ReturnTypeWillChange]
921 return (
object) $data;