3 declare(strict_types=1);
19 use DateTimeImmutable;
99 if (is_null($this->sku)) {
101 $data = $this->
raw(self::FIELD_SKU);
102 if (is_null($data)) {
105 $this->sku = (string) $data;
120 if (is_null($this->key)) {
122 $data = $this->
raw(self::FIELD_KEY);
123 if (is_null($data)) {
126 $this->key = (string) $data;
140 if (is_null($this->supplyChannel)) {
142 $data = $this->
raw(self::FIELD_SUPPLY_CHANNEL);
143 if (is_null($data)) {
161 if (is_null($this->quantityOnStock)) {
163 $data = $this->
raw(self::FIELD_QUANTITY_ON_STOCK);
164 if (is_null($data)) {
167 $this->quantityOnStock = (int) $data;
181 if (is_null($this->restockableInDays)) {
183 $data = $this->
raw(self::FIELD_RESTOCKABLE_IN_DAYS);
184 if (is_null($data)) {
187 $this->restockableInDays = (int) $data;
201 if (is_null($this->expectedDelivery)) {
203 $data = $this->
raw(self::FIELD_EXPECTED_DELIVERY);
204 if (is_null($data)) {
208 if (
false === $data) {
211 $this->expectedDelivery = $data;
225 if (is_null($this->custom)) {
227 $data = $this->
raw(self::FIELD_CUSTOM);
228 if (is_null($data)) {
296 #[\ReturnTypeWillChange]
303 return (
object) $data;
setQuantityOnStock(?int $quantityOnStock)
setSupplyChannel(?ChannelResourceIdentifier $supplyChannel)
setRestockableInDays(?int $restockableInDays)
setCustom(?CustomFieldsDraft $custom)
setExpectedDelivery(?DateTimeImmutable $expectedDelivery)
__construct(?string $sku=null, ?string $key=null, ?ChannelResourceIdentifier $supplyChannel=null, ?int $quantityOnStock=null, ?int $restockableInDays=null, ?DateTimeImmutable $expectedDelivery=null, ?CustomFieldsDraft $custom=null)
const FIELD_EXPECTED_DELIVERY