commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-import
src
Models
Importoperations
ImportOperationStatusBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Import\Models\Importoperations
;
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
Commercetools\Import\Models\Errors\ErrorObjectCollection
;
17
use stdClass;
18
22
final
class
ImportOperationStatusBuilder
implements
Builder
23
{
28
private
$operationId;
29
34
private
$state;
35
40
private
$errors;
41
48
public
function
getOperationId
()
49
{
50
return
$this->operationId;
51
}
52
59
public
function
getState
()
60
{
61
return
$this->state;
62
}
63
71
public
function
getErrors
()
72
{
73
return
$this->errors;
74
}
75
80
public
function
withOperationId
(?
string
$operationId)
81
{
82
$this->operationId = $operationId;
83
84
return
$this;
85
}
86
91
public
function
withState
(?
string
$state)
92
{
93
$this->state = $state;
94
95
return
$this;
96
}
97
102
public
function
withErrors
(?
ErrorObjectCollection
$errors)
103
{
104
$this->errors = $errors;
105
106
return
$this;
107
}
108
109
110
public
function
build
():
ImportOperationStatus
111
{
112
return
new
ImportOperationStatusModel
(
113
$this->operationId,
114
$this->state,
115
$this->errors
116
);
117
}
118
119
public
static
function
of
():
ImportOperationStatusBuilder
120
{
121
return
new
self
();
122
}
123
}
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition:
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition:
MapperFactory.php:16
Commercetools\Import\Models\Errors\ErrorObjectCollection
Definition:
ErrorObjectCollection.php:26
Commercetools\Import\Models\Importoperations\ImportOperationStatusBuilder
Definition:
ImportOperationStatusBuilder.php:23
Commercetools\Import\Models\Importoperations\ImportOperationStatusBuilder\getOperationId
getOperationId()
Definition:
ImportOperationStatusBuilder.php:48
Commercetools\Import\Models\Importoperations\ImportOperationStatusBuilder\of
static of()
Definition:
ImportOperationStatusBuilder.php:119
Commercetools\Import\Models\Importoperations\ImportOperationStatusBuilder\withErrors
withErrors(?ErrorObjectCollection $errors)
Definition:
ImportOperationStatusBuilder.php:102
Commercetools\Import\Models\Importoperations\ImportOperationStatusBuilder\build
build()
Definition:
ImportOperationStatusBuilder.php:110
Commercetools\Import\Models\Importoperations\ImportOperationStatusBuilder\getState
getState()
Definition:
ImportOperationStatusBuilder.php:59
Commercetools\Import\Models\Importoperations\ImportOperationStatusBuilder\withState
withState(?string $state)
Definition:
ImportOperationStatusBuilder.php:91
Commercetools\Import\Models\Importoperations\ImportOperationStatusBuilder\withOperationId
withOperationId(?string $operationId)
Definition:
ImportOperationStatusBuilder.php:80
Commercetools\Import\Models\Importoperations\ImportOperationStatusBuilder\getErrors
getErrors()
Definition:
ImportOperationStatusBuilder.php:71
Commercetools\Import\Models\Importoperations\ImportOperationStatusModel
Definition:
ImportOperationStatusModel.php:22
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Import\Models\Importoperations\ImportOperationStatus
Definition:
ImportOperationStatus.php:16
Commercetools\Import\Models\Importoperations
Definition:
ImportOperation.php:9
Generated by
1.9.1