commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
ValidityLockConflictErrorBuilder.php
1<?php
2
3declare(strict_types=1);
10
22use stdClass;
23
28{
33 private $message;
34
39 private $sku;
40
45 private $currency;
46
51 private $country;
52
57 private $customerGroup;
58
63 private $channel;
64
69 private $recurrencePolicy;
70
77 public function getMessage()
78 {
79 return $this->message;
80 }
81
88 public function getSku()
89 {
90 return $this->sku;
91 }
92
99 public function getCurrency()
100 {
101 return $this->currency;
102 }
103
110 public function getCountry()
111 {
112 return $this->country;
113 }
114
121 public function getCustomerGroup()
122 {
123 return $this->customerGroup instanceof CustomerGroupResourceIdentifierBuilder ? $this->customerGroup->build() : $this->customerGroup;
124 }
125
132 public function getChannel()
133 {
134 return $this->channel instanceof ChannelResourceIdentifierBuilder ? $this->channel->build() : $this->channel;
135 }
136
143 public function getRecurrencePolicy()
144 {
145 return $this->recurrencePolicy instanceof RecurrencePolicyResourceIdentifierBuilder ? $this->recurrencePolicy->build() : $this->recurrencePolicy;
146 }
147
152 public function withMessage(?string $message)
153 {
154 $this->message = $message;
155
156 return $this;
157 }
158
163 public function withSku(?string $sku)
164 {
165 $this->sku = $sku;
166
167 return $this;
168 }
169
174 public function withCurrency(?string $currency)
175 {
176 $this->currency = $currency;
177
178 return $this;
179 }
180
185 public function withCountry(?string $country)
186 {
187 $this->country = $country;
188
189 return $this;
190 }
191
196 public function withCustomerGroup(?CustomerGroupResourceIdentifier $customerGroup)
197 {
198 $this->customerGroup = $customerGroup;
199
200 return $this;
201 }
202
207 public function withChannel(?ChannelResourceIdentifier $channel)
208 {
209 $this->channel = $channel;
210
211 return $this;
212 }
213
219 {
220 $this->recurrencePolicy = $recurrencePolicy;
221
222 return $this;
223 }
224
230 {
231 $this->customerGroup = $customerGroup;
232
233 return $this;
234 }
235
241 {
242 $this->channel = $channel;
243
244 return $this;
245 }
246
252 {
253 $this->recurrencePolicy = $recurrencePolicy;
254
255 return $this;
256 }
257
259 {
261 $this->message,
262 $this->sku,
263 $this->currency,
264 $this->country,
265 $this->customerGroup instanceof CustomerGroupResourceIdentifierBuilder ? $this->customerGroup->build() : $this->customerGroup,
266 $this->channel instanceof ChannelResourceIdentifierBuilder ? $this->channel->build() : $this->channel,
267 $this->recurrencePolicy instanceof RecurrencePolicyResourceIdentifierBuilder ? $this->recurrencePolicy->build() : $this->recurrencePolicy
268 );
269 }
270
271 public static function of(): ValidityLockConflictErrorBuilder
272 {
273 return new self();
274 }
275}
withRecurrencePolicy(?RecurrencePolicyResourceIdentifier $recurrencePolicy)
withRecurrencePolicyBuilder(?RecurrencePolicyResourceIdentifierBuilder $recurrencePolicy)
withCustomerGroupBuilder(?CustomerGroupResourceIdentifierBuilder $customerGroup)