3 declare(strict_types=1);
21 use DateTimeImmutable;
101 if (is_null($this->key)) {
103 $data = $this->
raw(self::FIELD_KEY);
104 if (is_null($data)) {
107 $this->key = (string) $data;
121 if (is_null($this->sku)) {
123 $data = $this->
raw(self::FIELD_SKU);
124 if (is_null($data)) {
127 $this->sku = (string) $data;
141 if (is_null($this->quantityOnStock)) {
143 $data = $this->
raw(self::FIELD_QUANTITY_ON_STOCK);
144 if (is_null($data)) {
147 $this->quantityOnStock = (int) $data;
161 if (is_null($this->restockableInDays)) {
163 $data = $this->
raw(self::FIELD_RESTOCKABLE_IN_DAYS);
164 if (is_null($data)) {
167 $this->restockableInDays = (int) $data;
181 if (is_null($this->expectedDelivery)) {
183 $data = $this->
raw(self::FIELD_EXPECTED_DELIVERY);
184 if (is_null($data)) {
188 if (
false === $data) {
191 $this->expectedDelivery = $data;
205 if (is_null($this->supplyChannel)) {
207 $data = $this->
raw(self::FIELD_SUPPLY_CHANNEL);
208 if (is_null($data)) {
226 if (is_null($this->custom)) {
228 $data = $this->
raw(self::FIELD_CUSTOM);
229 if (is_null($data)) {
297 #[\ReturnTypeWillChange]
304 return (
object) $data;