commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
CannotCreateReservationWarningBuilder.php
1<?php
2
3declare(strict_types=1);
10
16use stdClass;
17
22{
27 private $message;
28
33 private $productId;
34
39 private $sku;
40
45 private $supplyChannel;
46
51 private $quantity;
52
59 public function getMessage()
60 {
61 return $this->message;
62 }
63
70 public function getProductId()
71 {
72 return $this->productId;
73 }
74
81 public function getSku()
82 {
83 return $this->sku;
84 }
85
92 public function getSupplyChannel()
93 {
94 return $this->supplyChannel;
95 }
96
103 public function getQuantity()
104 {
105 return $this->quantity;
106 }
107
112 public function withMessage(?string $message)
113 {
114 $this->message = $message;
115
116 return $this;
117 }
118
123 public function withProductId(?string $productId)
124 {
125 $this->productId = $productId;
126
127 return $this;
128 }
129
134 public function withSku(?string $sku)
135 {
136 $this->sku = $sku;
137
138 return $this;
139 }
140
145 public function withSupplyChannel(?string $supplyChannel)
146 {
147 $this->supplyChannel = $supplyChannel;
148
149 return $this;
150 }
151
156 public function withQuantity(?float $quantity)
157 {
158 $this->quantity = $quantity;
159
160 return $this;
161 }
162
163
165 {
167 $this->message,
168 $this->productId,
169 $this->sku,
170 $this->supplyChannel,
171 $this->quantity
172 );
173 }
174
176 {
177 return new self();
178 }
179}