3 declare(strict_types=1);
122 if (is_null($this->key)) {
124 $data = $this->
raw(self::FIELD_KEY);
125 if (is_null($data)) {
128 $this->key = (string) $data;
142 if (is_null($this->unitType)) {
144 $data = $this->
raw(self::FIELD_UNIT_TYPE);
145 if (is_null($data)) {
148 $this->unitType = (string) $data;
162 if (is_null($this->name)) {
164 $data = $this->
raw(self::FIELD_NAME);
165 if (is_null($data)) {
168 $this->name = (string) $data;
182 if (is_null($this->contactEmail)) {
184 $data = $this->
raw(self::FIELD_CONTACT_EMAIL);
185 if (is_null($data)) {
188 $this->contactEmail = (string) $data;
202 if (is_null($this->custom)) {
204 $data = $this->
raw(self::FIELD_CUSTOM);
205 if (is_null($data)) {
223 if (is_null($this->addresses)) {
225 $data = $this->
raw(self::FIELD_ADDRESSES);
226 if (is_null($data)) {
244 if (is_null($this->shippingAddresses)) {
246 $data = $this->
raw(self::FIELD_SHIPPING_ADDRESSES);
247 if (is_null($data)) {
250 $this->shippingAddresses = $data;
264 if (is_null($this->defaultShippingAddress)) {
266 $data = $this->
raw(self::FIELD_DEFAULT_SHIPPING_ADDRESS);
267 if (is_null($data)) {
270 $this->defaultShippingAddress = (int) $data;
285 if (is_null($this->billingAddresses)) {
287 $data = $this->
raw(self::FIELD_BILLING_ADDRESSES);
288 if (is_null($data)) {
291 $this->billingAddresses = $data;
305 if (is_null($this->defaultBillingAddress)) {
307 $data = $this->
raw(self::FIELD_DEFAULT_BILLING_ADDRESS);
308 if (is_null($data)) {
311 $this->defaultBillingAddress = (int) $data;