commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
BusinessUnit
BusinessUnitKeyReferenceBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\BusinessUnit
;
10
11
use
Commercetools\Api\Models\Common\KeyReference
;
12
use
Commercetools\Api\Models\Common\KeyReferenceBuilder
;
13
use
Commercetools\Base\Builder
;
14
use
Commercetools\Base\DateTimeImmutableCollection
;
15
use
Commercetools\Base\JsonObject
;
16
use
Commercetools\Base\JsonObjectModel
;
17
use
Commercetools\Base\MapperFactory
;
18
use stdClass;
19
23
final
class
BusinessUnitKeyReferenceBuilder
implements
Builder
24
{
29
private
$key;
30
37
public
function
getKey
()
38
{
39
return
$this->key;
40
}
41
46
public
function
withKey
(?
string
$key)
47
{
48
$this->key = $key;
49
50
return
$this;
51
}
52
53
54
public
function
build
():
BusinessUnitKeyReference
55
{
56
return
new
BusinessUnitKeyReferenceModel
(
57
$this->key
58
);
59
}
60
61
public
static
function
of
():
BusinessUnitKeyReferenceBuilder
62
{
63
return
new
self
();
64
}
65
}
Commercetools\Api\Models\BusinessUnit\BusinessUnitKeyReferenceBuilder
Definition:
BusinessUnitKeyReferenceBuilder.php:24
Commercetools\Api\Models\BusinessUnit\BusinessUnitKeyReferenceBuilder\build
build()
Definition:
BusinessUnitKeyReferenceBuilder.php:54
Commercetools\Api\Models\BusinessUnit\BusinessUnitKeyReferenceBuilder\withKey
withKey(?string $key)
Definition:
BusinessUnitKeyReferenceBuilder.php:46
Commercetools\Api\Models\BusinessUnit\BusinessUnitKeyReferenceBuilder\getKey
getKey()
Definition:
BusinessUnitKeyReferenceBuilder.php:37
Commercetools\Api\Models\BusinessUnit\BusinessUnitKeyReferenceBuilder\of
static of()
Definition:
BusinessUnitKeyReferenceBuilder.php:61
Commercetools\Api\Models\BusinessUnit\BusinessUnitKeyReferenceModel
Definition:
BusinessUnitKeyReferenceModel.php:23
Commercetools\Api\Models\Common\KeyReferenceBuilder
Definition:
KeyReferenceBuilder.php:28
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition:
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition:
MapperFactory.php:16
Commercetools\Api\Models\BusinessUnit\BusinessUnitKeyReference
Definition:
BusinessUnitKeyReference.php:16
Commercetools\Api\Models\Common\KeyReference
Definition:
KeyReference.php:18
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\BusinessUnit
Definition:
Associate.php:9
Generated by
1.9.1