3 declare(strict_types=1);
100 ?
string $name =
null,
132 if (is_null($this->key)) {
134 $data = $this->
raw(self::FIELD_KEY);
135 if (is_null($data)) {
138 $this->key = (string) $data;
152 if (is_null($this->unitType)) {
154 $data = $this->
raw(self::FIELD_UNIT_TYPE);
155 if (is_null($data)) {
158 $this->unitType = (string) $data;
172 if (is_null($this->name)) {
174 $data = $this->
raw(self::FIELD_NAME);
175 if (is_null($data)) {
178 $this->name = (string) $data;
192 if (is_null($this->contactEmail)) {
194 $data = $this->
raw(self::FIELD_CONTACT_EMAIL);
195 if (is_null($data)) {
198 $this->contactEmail = (string) $data;
212 if (is_null($this->custom)) {
214 $data = $this->
raw(self::FIELD_CUSTOM);
215 if (is_null($data)) {
233 if (is_null($this->addresses)) {
235 $data = $this->
raw(self::FIELD_ADDRESSES);
236 if (is_null($data)) {
254 if (is_null($this->shippingAddresses)) {
256 $data = $this->
raw(self::FIELD_SHIPPING_ADDRESSES);
257 if (is_null($data)) {
260 $this->shippingAddresses = $data;
274 if (is_null($this->defaultShippingAddress)) {
276 $data = $this->
raw(self::FIELD_DEFAULT_SHIPPING_ADDRESS);
277 if (is_null($data)) {
280 $this->defaultShippingAddress = (int) $data;
295 if (is_null($this->billingAddresses)) {
297 $data = $this->
raw(self::FIELD_BILLING_ADDRESSES);
298 if (is_null($data)) {
301 $this->billingAddresses = $data;
315 if (is_null($this->defaultBillingAddress)) {
317 $data = $this->
raw(self::FIELD_DEFAULT_BILLING_ADDRESS);
318 if (is_null($data)) {
321 $this->defaultBillingAddress = (int) $data;
335 if (is_null($this->parentUnit)) {
337 $data = $this->
raw(self::FIELD_PARENT_UNIT);
338 if (is_null($data)) {