3 declare(strict_types=1);
21 use DateTimeImmutable;
125 if (is_null($this->key)) {
127 $data = $this->
raw(self::FIELD_KEY);
128 if (is_null($data)) {
131 $this->key = (string) $data;
145 if (is_null($this->productId)) {
147 $data = $this->
raw(self::FIELD_PRODUCT_ID);
148 if (is_null($data)) {
151 $this->productId = (string) $data;
166 if (is_null($this->variantId)) {
168 $data = $this->
raw(self::FIELD_VARIANT_ID);
169 if (is_null($data)) {
172 $this->variantId = (int) $data;
186 if (is_null($this->sku)) {
188 $data = $this->
raw(self::FIELD_SKU);
189 if (is_null($data)) {
192 $this->sku = (string) $data;
206 if (is_null($this->quantity)) {
208 $data = $this->
raw(self::FIELD_QUANTITY);
209 if (is_null($data)) {
212 $this->quantity = (int) $data;
228 if (is_null($this->addedAt)) {
230 $data = $this->
raw(self::FIELD_ADDED_AT);
231 if (is_null($data)) {
235 if (
false === $data) {
238 $this->addedAt = $data;
253 if (is_null($this->supplyChannel)) {
255 $data = $this->
raw(self::FIELD_SUPPLY_CHANNEL);
256 if (is_null($data)) {
277 if (is_null($this->distributionChannel)) {
279 $data = $this->
raw(self::FIELD_DISTRIBUTION_CHANNEL);
280 if (is_null($data)) {
298 if (is_null($this->shippingDetails)) {
300 $data = $this->
raw(self::FIELD_SHIPPING_DETAILS);
301 if (is_null($data)) {
319 if (is_null($this->custom)) {
321 $data = $this->
raw(self::FIELD_CUSTOM);
322 if (is_null($data)) {
414 #[\ReturnTypeWillChange]
421 return (
object) $data;