commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-import
src
Models
Common
CustomObjectKeyReferenceBuilder.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
CustomObjectKeyReferenceBuilder
implements
Builder
22
{
27
private
$key;
28
33
private
$container;
34
39
public
function
getKey
()
40
{
41
return
$this->key;
42
}
43
48
public
function
getContainer
()
49
{
50
return
$this->container;
51
}
52
57
public
function
withKey
(?
string
$key)
58
{
59
$this->key = $key;
60
61
return
$this;
62
}
63
68
public
function
withContainer
(?
string
$container)
69
{
70
$this->container = $container;
71
72
return
$this;
73
}
74
75
76
public
function
build
():
CustomObjectKeyReference
77
{
78
return
new
CustomObjectKeyReferenceModel
(
79
$this->key,
80
$this->container
81
);
82
}
83
84
public
static
function
of
():
CustomObjectKeyReferenceBuilder
85
{
86
return
new
self
();
87
}
88
}
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\CustomObjectKeyReferenceBuilder
Definition:
CustomObjectKeyReferenceBuilder.php:22
Commercetools\Import\Models\Common\CustomObjectKeyReferenceBuilder\build
build()
Definition:
CustomObjectKeyReferenceBuilder.php:76
Commercetools\Import\Models\Common\CustomObjectKeyReferenceBuilder\getKey
getKey()
Definition:
CustomObjectKeyReferenceBuilder.php:39
Commercetools\Import\Models\Common\CustomObjectKeyReferenceBuilder\getContainer
getContainer()
Definition:
CustomObjectKeyReferenceBuilder.php:48
Commercetools\Import\Models\Common\CustomObjectKeyReferenceBuilder\withKey
withKey(?string $key)
Definition:
CustomObjectKeyReferenceBuilder.php:57
Commercetools\Import\Models\Common\CustomObjectKeyReferenceBuilder\withContainer
withContainer(?string $container)
Definition:
CustomObjectKeyReferenceBuilder.php:68
Commercetools\Import\Models\Common\CustomObjectKeyReferenceBuilder\of
static of()
Definition:
CustomObjectKeyReferenceBuilder.php:84
Commercetools\Import\Models\Common\CustomObjectKeyReferenceModel
Definition:
CustomObjectKeyReferenceModel.php:21
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Import\Models\Common\CustomObjectKeyReference
Definition:
CustomObjectKeyReference.php:15
Commercetools\Import\Models\Common
Definition:
Address.php:9
Generated by
1.9.1