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