commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
lib
commercetools-import
src
Models
Importsummaries
OperationStatesBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Import\Models\Importsummaries
;
10
11
use
Commercetools\Base\Builder
;
12
use
Commercetools\Base\DateTimeImmutableCollection
;
13
use
Commercetools\Base\JsonObject
;
14
use
Commercetools\Base\JsonObjectModel
;
15
use
Commercetools\Base\MapperFactory
;
16
use stdClass;
17
21
final
class
OperationStatesBuilder
implements
Builder
22
{
27
private
$processing;
28
33
private
$validationFailed;
34
39
private
$unresolved;
40
45
private
$waitForMasterVariant;
46
51
private
$imported;
52
57
private
$rejected;
58
63
private
$canceled;
64
71
public
function
getProcessing
()
72
{
73
return
$this->processing;
74
}
75
82
public
function
getValidationFailed
()
83
{
84
return
$this->validationFailed;
85
}
86
93
public
function
getUnresolved
()
94
{
95
return
$this->unresolved;
96
}
97
104
public
function
getWaitForMasterVariant
()
105
{
106
return
$this->waitForMasterVariant;
107
}
108
115
public
function
getImported
()
116
{
117
return
$this->imported;
118
}
119
126
public
function
getRejected
()
127
{
128
return
$this->rejected;
129
}
130
137
public
function
getCanceled
()
138
{
139
return
$this->canceled;
140
}
141
146
public
function
withProcessing
(?
int
$processing)
147
{
148
$this->processing = $processing;
149
150
return
$this;
151
}
152
157
public
function
withValidationFailed
(?
int
$validationFailed)
158
{
159
$this->validationFailed = $validationFailed;
160
161
return
$this;
162
}
163
168
public
function
withUnresolved
(?
int
$unresolved)
169
{
170
$this->unresolved = $unresolved;
171
172
return
$this;
173
}
174
179
public
function
withWaitForMasterVariant
(?
int
$waitForMasterVariant)
180
{
181
$this->waitForMasterVariant = $waitForMasterVariant;
182
183
return
$this;
184
}
185
190
public
function
withImported
(?
int
$imported)
191
{
192
$this->imported = $imported;
193
194
return
$this;
195
}
196
201
public
function
withRejected
(?
int
$rejected)
202
{
203
$this->rejected = $rejected;
204
205
return
$this;
206
}
207
212
public
function
withCanceled
(?
int
$canceled)
213
{
214
$this->canceled = $canceled;
215
216
return
$this;
217
}
218
219
220
public
function
build
():
OperationStates
221
{
222
return
new
OperationStatesModel
(
223
$this->processing,
224
$this->validationFailed,
225
$this->unresolved,
226
$this->waitForMasterVariant,
227
$this->imported,
228
$this->rejected,
229
$this->canceled
230
);
231
}
232
233
public
static
function
of
():
OperationStatesBuilder
234
{
235
return
new
self
();
236
}
237
}
Commercetools\Base\DateTimeImmutableCollection
Definition
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition
MapperFactory.php:16
Commercetools\Import\Models\Importsummaries\OperationStatesBuilder
Definition
OperationStatesBuilder.php:22
Commercetools\Import\Models\Importsummaries\OperationStatesBuilder\withImported
withImported(?int $imported)
Definition
OperationStatesBuilder.php:190
Commercetools\Import\Models\Importsummaries\OperationStatesBuilder\getProcessing
getProcessing()
Definition
OperationStatesBuilder.php:71
Commercetools\Import\Models\Importsummaries\OperationStatesBuilder\build
build()
Definition
OperationStatesBuilder.php:220
Commercetools\Import\Models\Importsummaries\OperationStatesBuilder\withUnresolved
withUnresolved(?int $unresolved)
Definition
OperationStatesBuilder.php:168
Commercetools\Import\Models\Importsummaries\OperationStatesBuilder\of
static of()
Definition
OperationStatesBuilder.php:233
Commercetools\Import\Models\Importsummaries\OperationStatesBuilder\withProcessing
withProcessing(?int $processing)
Definition
OperationStatesBuilder.php:146
Commercetools\Import\Models\Importsummaries\OperationStatesBuilder\getValidationFailed
getValidationFailed()
Definition
OperationStatesBuilder.php:82
Commercetools\Import\Models\Importsummaries\OperationStatesBuilder\withWaitForMasterVariant
withWaitForMasterVariant(?int $waitForMasterVariant)
Definition
OperationStatesBuilder.php:179
Commercetools\Import\Models\Importsummaries\OperationStatesBuilder\getUnresolved
getUnresolved()
Definition
OperationStatesBuilder.php:93
Commercetools\Import\Models\Importsummaries\OperationStatesBuilder\getWaitForMasterVariant
getWaitForMasterVariant()
Definition
OperationStatesBuilder.php:104
Commercetools\Import\Models\Importsummaries\OperationStatesBuilder\getImported
getImported()
Definition
OperationStatesBuilder.php:115
Commercetools\Import\Models\Importsummaries\OperationStatesBuilder\withCanceled
withCanceled(?int $canceled)
Definition
OperationStatesBuilder.php:212
Commercetools\Import\Models\Importsummaries\OperationStatesBuilder\getCanceled
getCanceled()
Definition
OperationStatesBuilder.php:137
Commercetools\Import\Models\Importsummaries\OperationStatesBuilder\withRejected
withRejected(?int $rejected)
Definition
OperationStatesBuilder.php:201
Commercetools\Import\Models\Importsummaries\OperationStatesBuilder\withValidationFailed
withValidationFailed(?int $validationFailed)
Definition
OperationStatesBuilder.php:157
Commercetools\Import\Models\Importsummaries\OperationStatesBuilder\getRejected
getRejected()
Definition
OperationStatesBuilder.php:126
Commercetools\Import\Models\Importsummaries\OperationStatesModel
Definition
OperationStatesModel.php:21
Commercetools\Base\Builder
Definition
Builder.php:16
Commercetools\Base\JsonObject
Definition
JsonObject.php:15
Commercetools\Import\Models\Importsummaries\OperationStates
Definition
OperationStates.php:15
Commercetools\Import\Models\Importsummaries
Definition
ImportSummary.php:9
Generated by
1.9.8