commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
VariantImagesSetMessageBuilder.php
1<?php
2
3declare(strict_types=1);
10
25use DateTimeImmutable;
26use stdClass;
27
32{
37 private $id;
38
43 private $version;
44
49 private $createdAt;
50
55 private $lastModifiedAt;
56
61 private $lastModifiedBy;
62
67 private $createdBy;
68
73 private $sequenceNumber;
74
79 private $resource;
80
85 private $resourceVersion;
86
91 private $resourceUserProvidedIdentifiers;
92
97 private $product;
98
103 private $images;
104
109 private $oldImages;
110
115 private $staged;
116
123 public function getId()
124 {
125 return $this->id;
126 }
127
134 public function getVersion()
135 {
136 return $this->version;
137 }
138
145 public function getCreatedAt()
146 {
147 return $this->createdAt;
148 }
149
156 public function getLastModifiedAt()
157 {
158 return $this->lastModifiedAt;
159 }
160
167 public function getLastModifiedBy()
168 {
169 return $this->lastModifiedBy instanceof LastModifiedByBuilder ? $this->lastModifiedBy->build() : $this->lastModifiedBy;
170 }
171
178 public function getCreatedBy()
179 {
180 return $this->createdBy instanceof CreatedByBuilder ? $this->createdBy->build() : $this->createdBy;
181 }
182
190 public function getSequenceNumber()
191 {
192 return $this->sequenceNumber;
193 }
194
201 public function getResource()
202 {
203 return $this->resource instanceof ReferenceBuilder ? $this->resource->build() : $this->resource;
204 }
205
212 public function getResourceVersion()
213 {
214 return $this->resourceVersion;
215 }
216
224 {
225 return $this->resourceUserProvidedIdentifiers instanceof UserProvidedIdentifiersBuilder ? $this->resourceUserProvidedIdentifiers->build() : $this->resourceUserProvidedIdentifiers;
226 }
227
234 public function getProduct()
235 {
236 return $this->product instanceof ProductReferenceBuilder ? $this->product->build() : $this->product;
237 }
238
245 public function getImages()
246 {
247 return $this->images;
248 }
249
256 public function getOldImages()
257 {
258 return $this->oldImages;
259 }
260
267 public function getStaged()
268 {
269 return $this->staged;
270 }
271
276 public function withId(?string $id)
277 {
278 $this->id = $id;
279
280 return $this;
281 }
282
287 public function withVersion(?int $version)
288 {
289 $this->version = $version;
290
291 return $this;
292 }
293
298 public function withCreatedAt(?DateTimeImmutable $createdAt)
299 {
300 $this->createdAt = $createdAt;
301
302 return $this;
303 }
304
309 public function withLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
310 {
311 $this->lastModifiedAt = $lastModifiedAt;
312
313 return $this;
314 }
315
320 public function withLastModifiedBy(?LastModifiedBy $lastModifiedBy)
321 {
322 $this->lastModifiedBy = $lastModifiedBy;
323
324 return $this;
325 }
326
331 public function withCreatedBy(?CreatedBy $createdBy)
332 {
333 $this->createdBy = $createdBy;
334
335 return $this;
336 }
337
342 public function withSequenceNumber(?int $sequenceNumber)
343 {
344 $this->sequenceNumber = $sequenceNumber;
345
346 return $this;
347 }
348
353 public function withResource(?Reference $resource)
354 {
355 $this->resource = $resource;
356
357 return $this;
358 }
359
364 public function withResourceVersion(?int $resourceVersion)
365 {
366 $this->resourceVersion = $resourceVersion;
367
368 return $this;
369 }
370
375 public function withResourceUserProvidedIdentifiers(?UserProvidedIdentifiers $resourceUserProvidedIdentifiers)
376 {
377 $this->resourceUserProvidedIdentifiers = $resourceUserProvidedIdentifiers;
378
379 return $this;
380 }
381
386 public function withProduct(?ProductReference $product)
387 {
388 $this->product = $product;
389
390 return $this;
391 }
392
397 public function withImages(?ImageCollection $images)
398 {
399 $this->images = $images;
400
401 return $this;
402 }
403
408 public function withOldImages(?ImageCollection $oldImages)
409 {
410 $this->oldImages = $oldImages;
411
412 return $this;
413 }
414
419 public function withStaged(?bool $staged)
420 {
421 $this->staged = $staged;
422
423 return $this;
424 }
425
430 public function withLastModifiedByBuilder(?LastModifiedByBuilder $lastModifiedBy)
431 {
432 $this->lastModifiedBy = $lastModifiedBy;
433
434 return $this;
435 }
436
441 public function withCreatedByBuilder(?CreatedByBuilder $createdBy)
442 {
443 $this->createdBy = $createdBy;
444
445 return $this;
446 }
447
452 public function withResourceBuilder(?ReferenceBuilder $resource)
453 {
454 $this->resource = $resource;
455
456 return $this;
457 }
458
463 public function withResourceUserProvidedIdentifiersBuilder(?UserProvidedIdentifiersBuilder $resourceUserProvidedIdentifiers)
464 {
465 $this->resourceUserProvidedIdentifiers = $resourceUserProvidedIdentifiers;
466
467 return $this;
468 }
469
475 {
476 $this->product = $product;
477
478 return $this;
479 }
480
482 {
484 $this->id,
485 $this->version,
486 $this->createdAt,
487 $this->lastModifiedAt,
488 $this->lastModifiedBy instanceof LastModifiedByBuilder ? $this->lastModifiedBy->build() : $this->lastModifiedBy,
489 $this->createdBy instanceof CreatedByBuilder ? $this->createdBy->build() : $this->createdBy,
490 $this->sequenceNumber,
491 $this->resource instanceof ReferenceBuilder ? $this->resource->build() : $this->resource,
492 $this->resourceVersion,
493 $this->resourceUserProvidedIdentifiers instanceof UserProvidedIdentifiersBuilder ? $this->resourceUserProvidedIdentifiers->build() : $this->resourceUserProvidedIdentifiers,
494 $this->product instanceof ProductReferenceBuilder ? $this->product->build() : $this->product,
495 $this->images,
496 $this->oldImages,
497 $this->staged
498 );
499 }
500
501 public static function of(): VariantImagesSetMessageBuilder
502 {
503 return new self();
504 }
505}
withResourceUserProvidedIdentifiersBuilder(?UserProvidedIdentifiersBuilder $resourceUserProvidedIdentifiers)
withResourceUserProvidedIdentifiers(?UserProvidedIdentifiers $resourceUserProvidedIdentifiers)