commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
SetAssetCustomFieldChangeBuilder.php
1<?php
2
3declare(strict_types=1);
10
16use stdClass;
19
24{
29 private $change;
30
35 private $previousValue;
36
41 private $nextValue;
42
47 private $name;
48
53 private $customTypeId;
54
59 private $asset;
60
65 private $catalogData;
66
71 private $variant;
72
77 public function getChange()
78 {
79 return $this->change;
80 }
81
88 public function getPreviousValue()
89 {
90 return $this->previousValue;
91 }
92
99 public function getNextValue()
100 {
101 return $this->nextValue;
102 }
103
110 public function getName()
111 {
112 return $this->name;
113 }
114
121 public function getCustomTypeId()
122 {
123 return $this->customTypeId;
124 }
125
132 public function getAsset()
133 {
134 return $this->asset instanceof AssetChangeValueBuilder ? $this->asset->build() : $this->asset;
135 }
136
147 public function getCatalogData()
148 {
149 return $this->catalogData;
150 }
151
159 public function getVariant()
160 {
161 return $this->variant;
162 }
163
168 public function withChange(?string $change)
169 {
170 $this->change = $change;
171
172 return $this;
173 }
174
179 public function withPreviousValue( $previousValue)
180 {
181 $this->previousValue = $previousValue;
182
183 return $this;
184 }
185
190 public function withNextValue( $nextValue)
191 {
192 $this->nextValue = $nextValue;
193
194 return $this;
195 }
196
201 public function withName(?string $name)
202 {
203 $this->name = $name;
204
205 return $this;
206 }
207
212 public function withCustomTypeId(?string $customTypeId)
213 {
214 $this->customTypeId = $customTypeId;
215
216 return $this;
217 }
218
223 public function withAsset(?AssetChangeValue $asset)
224 {
225 $this->asset = $asset;
226
227 return $this;
228 }
229
234 public function withCatalogData(?string $catalogData)
235 {
236 $this->catalogData = $catalogData;
237
238 return $this;
239 }
240
245 public function withVariant(?string $variant)
246 {
247 $this->variant = $variant;
248
249 return $this;
250 }
251
257 {
258 $this->asset = $asset;
259
260 return $this;
261 }
262
264 {
266 $this->change,
267 $this->previousValue,
268 $this->nextValue,
269 $this->name,
270 $this->customTypeId,
271 $this->asset instanceof AssetChangeValueBuilder ? $this->asset->build() : $this->asset,
272 $this->catalogData,
273 $this->variant
274 );
275 }
276
277 public static function of(): SetAssetCustomFieldChangeBuilder
278 {
279 return new self();
280 }
281}