commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-import
src
Models
Importrequests
ImportResponseModel.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Import\Models\Importrequests
;
10
11
use
Commercetools\Base\DateTimeImmutableCollection
;
12
use
Commercetools\Base\JsonObject
;
13
use
Commercetools\Base\JsonObjectModel
;
14
use
Commercetools\Base\MapperFactory
;
15
use
Commercetools\Import\Models\Importoperations\ImportOperationStatusCollection
;
16
use stdClass;
17
21
final
class
ImportResponseModel
extends
JsonObjectModel
implements
ImportResponse
22
{
27
protected
$operationStatus
;
28
29
33
public
function
__construct
(
34
?
ImportOperationStatusCollection
$operationStatus
=
null
35
) {
36
$this->operationStatus =
$operationStatus
;
37
}
38
43
public
function
getOperationStatus
()
44
{
45
if
(is_null($this->operationStatus)) {
47
$data = $this->
raw
(self::FIELD_OPERATION_STATUS);
48
if
(is_null($data)) {
49
return
null
;
50
}
51
$this->operationStatus =
ImportOperationStatusCollection::fromArray
($data);
52
}
53
54
return
$this->operationStatus
;
55
}
56
57
61
public
function
setOperationStatus
(?
ImportOperationStatusCollection
$operationStatus
): void
62
{
63
$this->operationStatus =
$operationStatus
;
64
}
65
}
Commercetools\Base\BaseJsonObject\raw
raw(string $field)
Definition:
BaseJsonObject.php:57
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition:
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition:
MapperFactory.php:16
Commercetools\Base\MapperSequence\fromArray
static fromArray(array $data)
Definition:
MapperSequence.php:56
Commercetools\Import\Models\Importoperations\ImportOperationStatusCollection
Definition:
ImportOperationStatusCollection.php:22
Commercetools\Import\Models\Importrequests\ImportResponseModel
Definition:
ImportResponseModel.php:22
Commercetools\Import\Models\Importrequests\ImportResponseModel\__construct
__construct(?ImportOperationStatusCollection $operationStatus=null)
Definition:
ImportResponseModel.php:33
Commercetools\Import\Models\Importrequests\ImportResponseModel\getOperationStatus
getOperationStatus()
Definition:
ImportResponseModel.php:43
Commercetools\Import\Models\Importrequests\ImportResponseModel\setOperationStatus
setOperationStatus(?ImportOperationStatusCollection $operationStatus)
Definition:
ImportResponseModel.php:61
Commercetools\Import\Models\Importrequests\ImportResponseModel\$operationStatus
$operationStatus
Definition:
ImportResponseModel.php:27
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Import\Models\Importrequests\ImportResponse
Definition:
ImportResponse.php:16
Commercetools\Import\Models\Importrequests
Definition:
CategoryImportRequest.php:9
Generated by
1.9.1