3 declare(strict_types=1);
141 if (is_null($this->
id)) {
143 $data = $this->
raw(self::FIELD_ID);
144 if (is_null($data)) {
147 $this->
id = (int) $data;
161 if (is_null($this->sku)) {
163 $data = $this->
raw(self::FIELD_SKU);
164 if (is_null($data)) {
167 $this->sku = (string) $data;
182 if (is_null($this->key)) {
184 $data = $this->
raw(self::FIELD_KEY);
185 if (is_null($data)) {
188 $this->key = (string) $data;
203 if (is_null($this->prices)) {
205 $data = $this->
raw(self::FIELD_PRICES);
206 if (is_null($data)) {
223 if (is_null($this->attributes)) {
225 $data = $this->
raw(self::FIELD_ATTRIBUTES);
226 if (is_null($data)) {
244 if (is_null($this->price)) {
246 $data = $this->
raw(self::FIELD_PRICE);
247 if (is_null($data)) {
265 if (is_null($this->images)) {
267 $data = $this->
raw(self::FIELD_IMAGES);
268 if (is_null($data)) {
285 if (is_null($this->assets)) {
287 $data = $this->
raw(self::FIELD_ASSETS);
288 if (is_null($data)) {
307 if (is_null($this->availability)) {
309 $data = $this->
raw(self::FIELD_AVAILABILITY);
310 if (is_null($data)) {
329 if (is_null($this->isMatchingVariant)) {
331 $data = $this->
raw(self::FIELD_IS_MATCHING_VARIANT);
332 if (is_null($data)) {
335 $this->isMatchingVariant = (bool) $data;
351 if (is_null($this->scopedPrice)) {
353 $data = $this->
raw(self::FIELD_SCOPED_PRICE);
354 if (is_null($data)) {
373 if (is_null($this->scopedPriceDiscounted)) {
375 $data = $this->
raw(self::FIELD_SCOPED_PRICE_DISCOUNTED);
376 if (is_null($data)) {
379 $this->scopedPriceDiscounted = (bool) $data;