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
Common
UnresolvedReferencesBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Import\Models\Common
;
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
UnresolvedReferencesBuilder
implements
Builder
22
{
27
private
$key;
28
33
private
$typeId;
34
41
public
function
getKey
()
42
{
43
return
$this->key;
44
}
45
52
public
function
getTypeId
()
53
{
54
return
$this->typeId;
55
}
56
61
public
function
withKey
(?
string
$key)
62
{
63
$this->key = $key;
64
65
return
$this;
66
}
67
72
public
function
withTypeId
(?
string
$typeId)
73
{
74
$this->typeId = $typeId;
75
76
return
$this;
77
}
78
79
80
public
function
build
():
UnresolvedReferences
81
{
82
return
new
UnresolvedReferencesModel
(
83
$this->key,
84
$this->typeId
85
);
86
}
87
88
public
static
function
of
():
UnresolvedReferencesBuilder
89
{
90
return
new
self
();
91
}
92
}
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\UnresolvedReferencesBuilder
Definition
UnresolvedReferencesBuilder.php:22
Commercetools\Import\Models\Common\UnresolvedReferencesBuilder\withTypeId
withTypeId(?string $typeId)
Definition
UnresolvedReferencesBuilder.php:72
Commercetools\Import\Models\Common\UnresolvedReferencesBuilder\withKey
withKey(?string $key)
Definition
UnresolvedReferencesBuilder.php:61
Commercetools\Import\Models\Common\UnresolvedReferencesBuilder\getTypeId
getTypeId()
Definition
UnresolvedReferencesBuilder.php:52
Commercetools\Import\Models\Common\UnresolvedReferencesBuilder\build
build()
Definition
UnresolvedReferencesBuilder.php:80
Commercetools\Import\Models\Common\UnresolvedReferencesBuilder\getKey
getKey()
Definition
UnresolvedReferencesBuilder.php:41
Commercetools\Import\Models\Common\UnresolvedReferencesBuilder\of
static of()
Definition
UnresolvedReferencesBuilder.php:88
Commercetools\Import\Models\Common\UnresolvedReferencesModel
Definition
UnresolvedReferencesModel.php:21
Commercetools\Base\Builder
Definition
Builder.php:16
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.8