commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
SetShippingRateInputChangeModel.php
1<?php
2
3declare(strict_types=1);
10
15use stdClass;
20
25{
26
27 public const DISCRIMINATOR_VALUE = 'SetShippingRateInputChange';
32 protected $type;
33
38 protected $change;
39
44 protected $previousValue;
45
50 protected $nextValue;
51
52
56 public function __construct(
57 ?string $change = null,
59 ?JsonObject $nextValue = null,
60 ?string $type = null
61 ) {
62 $this->change = $change;
63 $this->previousValue = $previousValue;
64 $this->nextValue = $nextValue;
65 $this->type = $type ?? self::DISCRIMINATOR_VALUE;
66 }
67
72 public function getType()
73 {
74 if (is_null($this->type)) {
76 $data = $this->raw(self::FIELD_TYPE);
77 if (is_null($data)) {
78 return null;
79 }
80 $this->type = (string) $data;
81 }
82
83 return $this->type;
84 }
85
90 public function getChange()
91 {
92 if (is_null($this->change)) {
94 $data = $this->raw(self::FIELD_CHANGE);
95 if (is_null($data)) {
96 return null;
97 }
98 $this->change = (string) $data;
99 }
100
101 return $this->change;
102 }
103
110 public function getPreviousValue()
111 {
112 if (is_null($this->previousValue)) {
114 $data = $this->raw(self::FIELD_PREVIOUS_VALUE);
115 if (is_null($data)) {
116 return null;
117 }
118 $this->previousValue = $data;
119 }
120
122 }
123
130 public function getNextValue()
131 {
132 if (is_null($this->nextValue)) {
134 $data = $this->raw(self::FIELD_NEXT_VALUE);
135 if (is_null($data)) {
136 return null;
137 }
138 $this->nextValue = $data;
139 }
140
141 return $this->nextValue;
142 }
143
150 {
152 $data = $this->raw(self::FIELD_PREVIOUS_VALUE);
153 if (is_null($data)) {
154 return null;
155 }
156
158 }
159
166 {
168 $data = $this->raw(self::FIELD_PREVIOUS_VALUE);
169 if (is_null($data)) {
170 return null;
171 }
172
174 }
175
182 {
184 $data = $this->raw(self::FIELD_NEXT_VALUE);
185 if (is_null($data)) {
186 return null;
187 }
188
190 }
191
198 {
200 $data = $this->raw(self::FIELD_NEXT_VALUE);
201 if (is_null($data)) {
202 return null;
203 }
204
206 }
207
211 public function setChange(?string $change): void
212 {
213 $this->change = $change;
214 }
215
220 {
221 $this->previousValue = $previousValue;
222 }
223
227 public function setNextValue(?JsonObject $nextValue): void
228 {
229 $this->nextValue = $nextValue;
230 }
231
232
233
234}
__construct(?string $change=null, ?JsonObject $previousValue=null, ?JsonObject $nextValue=null, ?string $type=null)