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 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
90 public function getFieldName()
91 {
92 return $this->fieldName;
93 }
94
101 public function getValueKey()
102 {
103 return $this->valueKey;
104 }
105
110 public function withChange(?string $change)
111 {
112 $this->change = $change;
113
114 return $this;
115 }
116
121 public function withPreviousValue(?string $previousValue)
122 {
123 $this->previousValue = $previousValue;
124
125 return $this;
126 }
127
132 public function withNextValue(?string $nextValue)
133 {
134 $this->nextValue = $nextValue;
135
136 return $this;
137 }
138
143 public function withFieldName(?string $fieldName)
144 {
145 $this->fieldName = $fieldName;
146
147 return $this;
148 }
149
154 public function withValueKey(?string $valueKey)
155 {
156 $this->valueKey = $valueKey;
157
158 return $this;
159 }
160
161
163 {
165 $this->change,
166 $this->previousValue,
167 $this->nextValue,
168 $this->fieldName,
169 $this->valueKey
170 );
171 }
172
173 public static function of(): ChangeEnumValueLabelChangeBuilder
174 {
175 return new self();
176 }
177}