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
69
70
74 public function __construct(
75 ?int $processing = null,
76 ?int $validationFailed = null,
77 ?int $unresolved = null,
78 ?int $waitForMasterVariant = null,
79 ?int $imported = null,
80 ?int $rejected = null,
81 ?int $canceled = null,
82 ?int $partiallyImported = null
83 ) {
84 $this->processing = $processing;
85 $this->validationFailed = $validationFailed;
86 $this->unresolved = $unresolved;
87 $this->waitForMasterVariant = $waitForMasterVariant;
88 $this->imported = $imported;
89 $this->rejected = $rejected;
90 $this->canceled = $canceled;
91 $this->partiallyImported = $partiallyImported;
92 }
93
100 public function getProcessing()
101 {
102 if (is_null($this->processing)) {
104 $data = $this->raw(self::FIELD_PROCESSING);
105 if (is_null($data)) {
106 return null;
107 }
108 $this->processing = (int) $data;
109 }
110
111 return $this->processing;
112 }
113
120 public function getValidationFailed()
121 {
122 if (is_null($this->validationFailed)) {
124 $data = $this->raw(self::FIELD_VALIDATION_FAILED);
125 if (is_null($data)) {
126 return null;
127 }
128 $this->validationFailed = (int) $data;
129 }
130
132 }
133
140 public function getUnresolved()
141 {
142 if (is_null($this->unresolved)) {
144 $data = $this->raw(self::FIELD_UNRESOLVED);
145 if (is_null($data)) {
146 return null;
147 }
148 $this->unresolved = (int) $data;
149 }
150
151 return $this->unresolved;
152 }
153
160 public function getWaitForMasterVariant()
161 {
162 if (is_null($this->waitForMasterVariant)) {
164 $data = $this->raw(self::FIELD_WAIT_FOR_MASTER_VARIANT);
165 if (is_null($data)) {
166 return null;
167 }
168 $this->waitForMasterVariant = (int) $data;
169 }
170
172 }
173
180 public function getImported()
181 {
182 if (is_null($this->imported)) {
184 $data = $this->raw(self::FIELD_IMPORTED);
185 if (is_null($data)) {
186 return null;
187 }
188 $this->imported = (int) $data;
189 }
190
191 return $this->imported;
192 }
193
200 public function getRejected()
201 {
202 if (is_null($this->rejected)) {
204 $data = $this->raw(self::FIELD_REJECTED);
205 if (is_null($data)) {
206 return null;
207 }
208 $this->rejected = (int) $data;
209 }
210
211 return $this->rejected;
212 }
213
220 public function getCanceled()
221 {
222 if (is_null($this->canceled)) {
224 $data = $this->raw(self::FIELD_CANCELED);
225 if (is_null($data)) {
226 return null;
227 }
228 $this->canceled = (int) $data;
229 }
230
231 return $this->canceled;
232 }
233
240 public function getPartiallyImported()
241 {
242 if (is_null($this->partiallyImported)) {
244 $data = $this->raw(self::FIELD_PARTIALLY_IMPORTED);
245 if (is_null($data)) {
246 return null;
247 }
248 $this->partiallyImported = (int) $data;
249 }
250
252 }
253
254
258 public function setProcessing(?int $processing): void
259 {
260 $this->processing = $processing;
261 }
262
266 public function setValidationFailed(?int $validationFailed): void
267 {
268 $this->validationFailed = $validationFailed;
269 }
270
274 public function setUnresolved(?int $unresolved): void
275 {
276 $this->unresolved = $unresolved;
277 }
278
283 {
284 $this->waitForMasterVariant = $waitForMasterVariant;
285 }
286
290 public function setImported(?int $imported): void
291 {
292 $this->imported = $imported;
293 }
294
298 public function setRejected(?int $rejected): void
299 {
300 $this->rejected = $rejected;
301 }
302
306 public function setCanceled(?int $canceled): void
307 {
308 $this->canceled = $canceled;
309 }
310
314 public function setPartiallyImported(?int $partiallyImported): void
315 {
316 $this->partiallyImported = $partiallyImported;
317 }
318}
__construct(?int $processing=null, ?int $validationFailed=null, ?int $unresolved=null, ?int $waitForMasterVariant=null, ?int $imported=null, ?int $rejected=null, ?int $canceled=null, ?int $partiallyImported=null)