3 declare(strict_types=1);
25 use DateTimeImmutable;
161 if (is_null($this->
id)) {
163 $data = $this->
raw(self::FIELD_ID);
164 if (is_null($data)) {
167 $this->
id = (string) $data;
181 if (is_null($this->version)) {
183 $data = $this->
raw(self::FIELD_VERSION);
184 if (is_null($data)) {
187 $this->version = (int) $data;
201 if (is_null($this->createdAt)) {
203 $data = $this->
raw(self::FIELD_CREATED_AT);
204 if (is_null($data)) {
208 if (
false === $data) {
211 $this->createdAt = $data;
225 if (is_null($this->lastModifiedAt)) {
227 $data = $this->
raw(self::FIELD_LAST_MODIFIED_AT);
228 if (is_null($data)) {
232 if (
false === $data) {
235 $this->lastModifiedAt = $data;
249 if (is_null($this->lastModifiedBy)) {
251 $data = $this->
raw(self::FIELD_LAST_MODIFIED_BY);
252 if (is_null($data)) {
270 if (is_null($this->createdBy)) {
272 $data = $this->
raw(self::FIELD_CREATED_BY);
273 if (is_null($data)) {
291 if (is_null($this->key)) {
293 $data = $this->
raw(self::FIELD_KEY);
294 if (is_null($data)) {
297 $this->key = (string) $data;
311 if (is_null($this->sku)) {
313 $data = $this->
raw(self::FIELD_SKU);
314 if (is_null($data)) {
317 $this->sku = (string) $data;
331 if (is_null($this->supplyChannel)) {
333 $data = $this->
raw(self::FIELD_SUPPLY_CHANNEL);
334 if (is_null($data)) {
352 if (is_null($this->quantityOnStock)) {
354 $data = $this->
raw(self::FIELD_QUANTITY_ON_STOCK);
355 if (is_null($data)) {
358 $this->quantityOnStock = (int) $data;
372 if (is_null($this->availableQuantity)) {
374 $data = $this->
raw(self::FIELD_AVAILABLE_QUANTITY);
375 if (is_null($data)) {
378 $this->availableQuantity = (int) $data;
392 if (is_null($this->restockableInDays)) {
394 $data = $this->
raw(self::FIELD_RESTOCKABLE_IN_DAYS);
395 if (is_null($data)) {
398 $this->restockableInDays = (int) $data;
412 if (is_null($this->expectedDelivery)) {
414 $data = $this->
raw(self::FIELD_EXPECTED_DELIVERY);
415 if (is_null($data)) {
419 if (
false === $data) {
422 $this->expectedDelivery = $data;
436 if (is_null($this->custom)) {
438 $data = $this->
raw(self::FIELD_CUSTOM);
439 if (is_null($data)) {
563 #[\ReturnTypeWillChange]
578 return (
object) $data;
setCreatedAt(?DateTimeImmutable $createdAt)
setExpectedDelivery(?DateTimeImmutable $expectedDelivery)
setLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
setQuantityOnStock(?int $quantityOnStock)
setLastModifiedBy(?LastModifiedBy $lastModifiedBy)
setCustom(?CustomFields $custom)
setCreatedBy(?CreatedBy $createdBy)
setSupplyChannel(?ChannelReference $supplyChannel)
setVersion(?int $version)
setRestockableInDays(?int $restockableInDays)
setAvailableQuantity(?int $availableQuantity)
__construct(?string $id=null, ?int $version=null, ?DateTimeImmutable $createdAt=null, ?DateTimeImmutable $lastModifiedAt=null, ?LastModifiedBy $lastModifiedBy=null, ?CreatedBy $createdBy=null, ?string $key=null, ?string $sku=null, ?ChannelReference $supplyChannel=null, ?int $quantityOnStock=null, ?int $availableQuantity=null, ?int $restockableInDays=null, ?DateTimeImmutable $expectedDelivery=null, ?CustomFields $custom=null)
const FIELD_EXPECTED_DELIVERY