commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
SetSkuChangeBuilder.php
1<?php
2
3declare(strict_types=1);
10
16use stdClass;
17
21final class SetSkuChangeBuilder implements Builder
22{
27 private $change;
28
33 private $previousValue;
34
39 private $nextValue;
40
45 private $catalogData;
46
51 private $variant;
52
57 public function getChange()
58 {
59 return $this->change;
60 }
61
68 public function getPreviousValue()
69 {
70 return $this->previousValue;
71 }
72
79 public function getNextValue()
80 {
81 return $this->nextValue;
82 }
83
94 public function getCatalogData()
95 {
96 return $this->catalogData;
97 }
98
106 public function getVariant()
107 {
108 return $this->variant;
109 }
110
115 public function withChange(?string $change)
116 {
117 $this->change = $change;
118
119 return $this;
120 }
121
126 public function withPreviousValue(?string $previousValue)
127 {
128 $this->previousValue = $previousValue;
129
130 return $this;
131 }
132
137 public function withNextValue(?string $nextValue)
138 {
139 $this->nextValue = $nextValue;
140
141 return $this;
142 }
143
148 public function withCatalogData(?string $catalogData)
149 {
150 $this->catalogData = $catalogData;
151
152 return $this;
153 }
154
159 public function withVariant(?string $variant)
160 {
161 $this->variant = $variant;
162
163 return $this;
164 }
165
166
167 public function build(): SetSkuChange
168 {
169 return new SetSkuChangeModel(
170 $this->change,
171 $this->previousValue,
172 $this->nextValue,
173 $this->catalogData,
174 $this->variant
175 );
176 }
177
178 public static function of(): SetSkuChangeBuilder
179 {
180 return new self();
181 }
182}