commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
OperationStatesModel.php
1<?php
2
3declare(strict_types=1);
10
15use stdClass;
16
21{
26 protected $processing;
27
33
38 protected $unresolved;
39
45
50 protected $imported;
51
56 protected $rejected;
57
62 protected $canceled;
63
64
68 public function __construct(
69 ?int $processing = null,
70 ?int $validationFailed = null,
71 ?int $unresolved = null,
72 ?int $waitForMasterVariant = null,
73 ?int $imported = null,
74 ?int $rejected = null,
75 ?int $canceled = null
76 ) {
77 $this->processing = $processing;
78 $this->validationFailed = $validationFailed;
79 $this->unresolved = $unresolved;
80 $this->waitForMasterVariant = $waitForMasterVariant;
81 $this->imported = $imported;
82 $this->rejected = $rejected;
83 $this->canceled = $canceled;
84 }
85
92 public function getProcessing()
93 {
94 if (is_null($this->processing)) {
96 $data = $this->raw(self::FIELD_PROCESSING);
97 if (is_null($data)) {
98 return null;
99 }
100 $this->processing = (int) $data;
101 }
102
103 return $this->processing;
104 }
105
112 public function getValidationFailed()
113 {
114 if (is_null($this->validationFailed)) {
116 $data = $this->raw(self::FIELD_VALIDATION_FAILED);
117 if (is_null($data)) {
118 return null;
119 }
120 $this->validationFailed = (int) $data;
121 }
122
124 }
125
132 public function getUnresolved()
133 {
134 if (is_null($this->unresolved)) {
136 $data = $this->raw(self::FIELD_UNRESOLVED);
137 if (is_null($data)) {
138 return null;
139 }
140 $this->unresolved = (int) $data;
141 }
142
143 return $this->unresolved;
144 }
145
152 public function getWaitForMasterVariant()
153 {
154 if (is_null($this->waitForMasterVariant)) {
156 $data = $this->raw(self::FIELD_WAIT_FOR_MASTER_VARIANT);
157 if (is_null($data)) {
158 return null;
159 }
160 $this->waitForMasterVariant = (int) $data;
161 }
162
164 }
165
172 public function getImported()
173 {
174 if (is_null($this->imported)) {
176 $data = $this->raw(self::FIELD_IMPORTED);
177 if (is_null($data)) {
178 return null;
179 }
180 $this->imported = (int) $data;
181 }
182
183 return $this->imported;
184 }
185
192 public function getRejected()
193 {
194 if (is_null($this->rejected)) {
196 $data = $this->raw(self::FIELD_REJECTED);
197 if (is_null($data)) {
198 return null;
199 }
200 $this->rejected = (int) $data;
201 }
202
203 return $this->rejected;
204 }
205
212 public function getCanceled()
213 {
214 if (is_null($this->canceled)) {
216 $data = $this->raw(self::FIELD_CANCELED);
217 if (is_null($data)) {
218 return null;
219 }
220 $this->canceled = (int) $data;
221 }
222
223 return $this->canceled;
224 }
225
226
230 public function setProcessing(?int $processing): void
231 {
232 $this->processing = $processing;
233 }
234
238 public function setValidationFailed(?int $validationFailed): void
239 {
240 $this->validationFailed = $validationFailed;
241 }
242
246 public function setUnresolved(?int $unresolved): void
247 {
248 $this->unresolved = $unresolved;
249 }
250
255 {
256 $this->waitForMasterVariant = $waitForMasterVariant;
257 }
258
262 public function setImported(?int $imported): void
263 {
264 $this->imported = $imported;
265 }
266
270 public function setRejected(?int $rejected): void
271 {
272 $this->rejected = $rejected;
273 }
274
278 public function setCanceled(?int $canceled): void
279 {
280 $this->canceled = $canceled;
281 }
282}
__construct(?int $processing=null, ?int $validationFailed=null, ?int $unresolved=null, ?int $waitForMasterVariant=null, ?int $imported=null, ?int $rejected=null, ?int $canceled=null)