commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
SetPriceKeyChangeBuilder.php
1<?php
2
3declare(strict_types=1);
10
16use stdClass;
17
21final class SetPriceKeyChangeBuilder implements Builder
22{
27 private $change;
28
33 private $catalogData;
34
39 private $variant;
40
45 private $priceId;
46
51 private $previousValue;
52
57 private $nextValue;
58
63 public function getChange()
64 {
65 return $this->change;
66 }
67
78 public function getCatalogData()
79 {
80 return $this->catalogData;
81 }
82
90 public function getVariant()
91 {
92 return $this->variant;
93 }
94
101 public function getPriceId()
102 {
103 return $this->priceId;
104 }
105
112 public function getPreviousValue()
113 {
114 return $this->previousValue;
115 }
116
123 public function getNextValue()
124 {
125 return $this->nextValue;
126 }
127
132 public function withChange(?string $change)
133 {
134 $this->change = $change;
135
136 return $this;
137 }
138
143 public function withCatalogData(?string $catalogData)
144 {
145 $this->catalogData = $catalogData;
146
147 return $this;
148 }
149
154 public function withVariant(?string $variant)
155 {
156 $this->variant = $variant;
157
158 return $this;
159 }
160
165 public function withPriceId(?string $priceId)
166 {
167 $this->priceId = $priceId;
168
169 return $this;
170 }
171
176 public function withPreviousValue(?string $previousValue)
177 {
178 $this->previousValue = $previousValue;
179
180 return $this;
181 }
182
187 public function withNextValue(?string $nextValue)
188 {
189 $this->nextValue = $nextValue;
190
191 return $this;
192 }
193
194
195 public function build(): SetPriceKeyChange
196 {
197 return new SetPriceKeyChangeModel(
198 $this->change,
199 $this->catalogData,
200 $this->variant,
201 $this->priceId,
202 $this->previousValue,
203 $this->nextValue
204 );
205 }
206
207 public static function of(): SetPriceKeyChangeBuilder
208 {
209 return new self();
210 }
211}