commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
VariantImagesSetMessagePayloadBuilder.php
1<?php
2
3declare(strict_types=1);
10
19use stdClass;
20
25{
30 private $product;
31
36 private $images;
37
42 private $oldImages;
43
48 private $staged;
49
56 public function getProduct()
57 {
58 return $this->product instanceof ProductReferenceBuilder ? $this->product->build() : $this->product;
59 }
60
67 public function getImages()
68 {
69 return $this->images;
70 }
71
78 public function getOldImages()
79 {
80 return $this->oldImages;
81 }
82
89 public function getStaged()
90 {
91 return $this->staged;
92 }
93
98 public function withProduct(?ProductReference $product)
99 {
100 $this->product = $product;
101
102 return $this;
103 }
104
109 public function withImages(?ImageCollection $images)
110 {
111 $this->images = $images;
112
113 return $this;
114 }
115
120 public function withOldImages(?ImageCollection $oldImages)
121 {
122 $this->oldImages = $oldImages;
123
124 return $this;
125 }
126
131 public function withStaged(?bool $staged)
132 {
133 $this->staged = $staged;
134
135 return $this;
136 }
137
143 {
144 $this->product = $product;
145
146 return $this;
147 }
148
150 {
152 $this->product instanceof ProductReferenceBuilder ? $this->product->build() : $this->product,
153 $this->images,
154 $this->oldImages,
155 $this->staged
156 );
157 }
158
160 {
161 return new self();
162 }
163}