commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
ChangeEnumValueLabelChangeBuilder.php
1<?php
2
3declare(strict_types=1);
10
16use stdClass;
17
22{
27 private $change;
28
33 private $previousValue;
34
39 private $nextValue;
40
45 private $fieldName;
46
51 private $valueKey;
52
57 private $attributeName;
58
63 public function getChange()
64 {
65 return $this->change;
66 }
67
74 public function getPreviousValue()
75 {
76 return $this->previousValue;
77 }
78
85 public function getNextValue()
86 {
87 return $this->nextValue;
88 }
89
96 public function getFieldName()
97 {
98 return $this->fieldName;
99 }
100
107 public function getValueKey()
108 {
109 return $this->valueKey;
110 }
111
118 public function getAttributeName()
119 {
120 return $this->attributeName;
121 }
122
127 public function withChange(?string $change)
128 {
129 $this->change = $change;
130
131 return $this;
132 }
133
138 public function withPreviousValue(?string $previousValue)
139 {
140 $this->previousValue = $previousValue;
141
142 return $this;
143 }
144
149 public function withNextValue(?string $nextValue)
150 {
151 $this->nextValue = $nextValue;
152
153 return $this;
154 }
155
160 public function withFieldName(?string $fieldName)
161 {
162 $this->fieldName = $fieldName;
163
164 return $this;
165 }
166
171 public function withValueKey(?string $valueKey)
172 {
173 $this->valueKey = $valueKey;
174
175 return $this;
176 }
177
182 public function withAttributeName(?string $attributeName)
183 {
184 $this->attributeName = $attributeName;
185
186 return $this;
187 }
188
189
191 {
193 $this->change,
194 $this->previousValue,
195 $this->nextValue,
196 $this->fieldName,
197 $this->valueKey,
198 $this->attributeName
199 );
200 }
201
202 public static function of(): ChangeEnumValueLabelChangeBuilder
203 {
204 return new self();
205 }
206}