commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
VariantAttributesChannelAvailabilityBuilder.php
1<?php
2
3declare(strict_types=1);
10
16use stdClass;
17
22{
27 private $isOnStock;
28
33 private $restockableInDays;
34
39 private $availableQuantity;
40
47 public function getIsOnStock()
48 {
49 return $this->isOnStock;
50 }
51
58 public function getRestockableInDays()
59 {
60 return $this->restockableInDays;
61 }
62
69 public function getAvailableQuantity()
70 {
71 return $this->availableQuantity;
72 }
73
78 public function withIsOnStock(?bool $isOnStock)
79 {
80 $this->isOnStock = $isOnStock;
81
82 return $this;
83 }
84
89 public function withRestockableInDays(?int $restockableInDays)
90 {
91 $this->restockableInDays = $restockableInDays;
92
93 return $this;
94 }
95
100 public function withAvailableQuantity(?int $availableQuantity)
101 {
102 $this->availableQuantity = $availableQuantity;
103
104 return $this;
105 }
106
107
109 {
111 $this->isOnStock,
112 $this->restockableInDays,
113 $this->availableQuantity
114 );
115 }
116
118 {
119 return new self();
120 }
121}