commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-import
src
Models
Common
UnresolvedReferencesModel.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Import\Models\Common
;
10
11
use
Commercetools\Base\DateTimeImmutableCollection
;
12
use
Commercetools\Base\JsonObject
;
13
use
Commercetools\Base\JsonObjectModel
;
14
use
Commercetools\Base\MapperFactory
;
15
use stdClass;
16
20
final
class
UnresolvedReferencesModel
extends
JsonObjectModel
implements
UnresolvedReferences
21
{
26
protected
$key
;
27
32
protected
$typeId
;
33
34
38
public
function
__construct
(
39
?
string
$key
=
null
,
40
?
string
$typeId
=
null
41
) {
42
$this->key =
$key
;
43
$this->typeId =
$typeId
;
44
}
45
50
public
function
getKey
()
51
{
52
if
(is_null($this->key)) {
54
$data = $this->
raw
(self::FIELD_KEY);
55
if
(is_null($data)) {
56
return
null
;
57
}
58
$this->key = (string) $data;
59
}
60
61
return
$this->key
;
62
}
63
70
public
function
getTypeId
()
71
{
72
if
(is_null($this->typeId)) {
74
$data = $this->
raw
(self::FIELD_TYPE_ID);
75
if
(is_null($data)) {
76
return
null
;
77
}
78
$this->typeId = (string) $data;
79
}
80
81
return
$this->typeId
;
82
}
83
84
88
public
function
setKey
(?
string
$key
): void
89
{
90
$this->key =
$key
;
91
}
92
96
public
function
setTypeId
(?
string
$typeId
): void
97
{
98
$this->typeId =
$typeId
;
99
}
100
}
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\Import\Models\Common\UnresolvedReferencesModel
Definition:
UnresolvedReferencesModel.php:21
Commercetools\Import\Models\Common\UnresolvedReferencesModel\$typeId
$typeId
Definition:
UnresolvedReferencesModel.php:32
Commercetools\Import\Models\Common\UnresolvedReferencesModel\setTypeId
setTypeId(?string $typeId)
Definition:
UnresolvedReferencesModel.php:96
Commercetools\Import\Models\Common\UnresolvedReferencesModel\__construct
__construct(?string $key=null, ?string $typeId=null)
Definition:
UnresolvedReferencesModel.php:38
Commercetools\Import\Models\Common\UnresolvedReferencesModel\$key
$key
Definition:
UnresolvedReferencesModel.php:26
Commercetools\Import\Models\Common\UnresolvedReferencesModel\getKey
getKey()
Definition:
UnresolvedReferencesModel.php:50
Commercetools\Import\Models\Common\UnresolvedReferencesModel\setKey
setKey(?string $key)
Definition:
UnresolvedReferencesModel.php:88
Commercetools\Import\Models\Common\UnresolvedReferencesModel\getTypeId
getTypeId()
Definition:
UnresolvedReferencesModel.php:70
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Import\Models\Common\UnresolvedReferences
Definition:
UnresolvedReferences.php:15
Commercetools\Import\Models\Common
Definition:
Address.php:9
Generated by
1.9.1