3 declare(strict_types=1);
23 use DateTimeImmutable;
197 ?
string $name =
null,
248 if (is_null($this->
id)) {
250 $data = $this->
raw(self::FIELD_ID);
251 if (is_null($data)) {
254 $this->
id = (string) $data;
268 if (is_null($this->version)) {
270 $data = $this->
raw(self::FIELD_VERSION);
271 if (is_null($data)) {
274 $this->version = (int) $data;
288 if (is_null($this->createdAt)) {
290 $data = $this->
raw(self::FIELD_CREATED_AT);
291 if (is_null($data)) {
295 if (
false === $data) {
298 $this->createdAt = $data;
312 if (is_null($this->lastModifiedAt)) {
314 $data = $this->
raw(self::FIELD_LAST_MODIFIED_AT);
315 if (is_null($data)) {
319 if (
false === $data) {
322 $this->lastModifiedAt = $data;
336 if (is_null($this->lastModifiedBy)) {
338 $data = $this->
raw(self::FIELD_LAST_MODIFIED_BY);
339 if (is_null($data)) {
357 if (is_null($this->createdBy)) {
359 $data = $this->
raw(self::FIELD_CREATED_BY);
360 if (is_null($data)) {
378 if (is_null($this->key)) {
380 $data = $this->
raw(self::FIELD_KEY);
381 if (is_null($data)) {
384 $this->key = (string) $data;
398 if (is_null($this->status)) {
400 $data = $this->
raw(self::FIELD_STATUS);
401 if (is_null($data)) {
404 $this->status = (string) $data;
420 if (is_null($this->stores)) {
422 $data = $this->
raw(self::FIELD_STORES);
423 if (is_null($data)) {
440 if (is_null($this->storeMode)) {
442 $data = $this->
raw(self::FIELD_STORE_MODE);
443 if (is_null($data)) {
446 $this->storeMode = (string) $data;
460 if (is_null($this->unitType)) {
462 $data = $this->
raw(self::FIELD_UNIT_TYPE);
463 if (is_null($data)) {
466 $this->unitType = (string) $data;
480 if (is_null($this->name)) {
482 $data = $this->
raw(self::FIELD_NAME);
483 if (is_null($data)) {
486 $this->name = (string) $data;
500 if (is_null($this->contactEmail)) {
502 $data = $this->
raw(self::FIELD_CONTACT_EMAIL);
503 if (is_null($data)) {
506 $this->contactEmail = (string) $data;
520 if (is_null($this->custom)) {
522 $data = $this->
raw(self::FIELD_CUSTOM);
523 if (is_null($data)) {
541 if (is_null($this->addresses)) {
543 $data = $this->
raw(self::FIELD_ADDRESSES);
544 if (is_null($data)) {
561 if (is_null($this->shippingAddressIds)) {
563 $data = $this->
raw(self::FIELD_SHIPPING_ADDRESS_IDS);
564 if (is_null($data)) {
567 $this->shippingAddressIds = $data;
581 if (is_null($this->defaultShippingAddressId)) {
583 $data = $this->
raw(self::FIELD_DEFAULT_SHIPPING_ADDRESS_ID);
584 if (is_null($data)) {
587 $this->defaultShippingAddressId = (string) $data;
601 if (is_null($this->billingAddressIds)) {
603 $data = $this->
raw(self::FIELD_BILLING_ADDRESS_IDS);
604 if (is_null($data)) {
607 $this->billingAddressIds = $data;
621 if (is_null($this->defaultBillingAddressId)) {
623 $data = $this->
raw(self::FIELD_DEFAULT_BILLING_ADDRESS_ID);
624 if (is_null($data)) {
627 $this->defaultBillingAddressId = (string) $data;
641 if (is_null($this->associateMode)) {
643 $data = $this->
raw(self::FIELD_ASSOCIATE_MODE);
644 if (is_null($data)) {
647 $this->associateMode = (string) $data;
661 if (is_null($this->associates)) {
663 $data = $this->
raw(self::FIELD_ASSOCIATES);
664 if (is_null($data)) {
681 if (is_null($this->inheritedAssociates)) {
683 $data = $this->
raw(self::FIELD_INHERITED_ASSOCIATES);
684 if (is_null($data)) {
701 if (is_null($this->parentUnit)) {
703 $data = $this->
raw(self::FIELD_PARENT_UNIT);
704 if (is_null($data)) {
722 if (is_null($this->topLevelUnit)) {
724 $data = $this->
raw(self::FIELD_TOP_LEVEL_UNIT);
725 if (is_null($data)) {
743 if (is_null($this->approvalRuleMode)) {
745 $data = $this->
raw(self::FIELD_APPROVAL_RULE_MODE);
746 if (is_null($data)) {
749 $this->approvalRuleMode = (string) $data;
949 #[\ReturnTypeWillChange]
960 return (
object) $data;