commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
AssociateRole
AssociateRoleKeyReferenceBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\AssociateRole
;
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
AssociateRoleKeyReferenceBuilder
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
():
AssociateRoleKeyReference
55
{
56
return
new
AssociateRoleKeyReferenceModel
(
57
$this->key
58
);
59
}
60
61
public
static
function
of
():
AssociateRoleKeyReferenceBuilder
62
{
63
return
new
self
();
64
}
65
}
Commercetools\Api\Models\AssociateRole\AssociateRoleKeyReferenceBuilder
Definition:
AssociateRoleKeyReferenceBuilder.php:24
Commercetools\Api\Models\AssociateRole\AssociateRoleKeyReferenceBuilder\of
static of()
Definition:
AssociateRoleKeyReferenceBuilder.php:61
Commercetools\Api\Models\AssociateRole\AssociateRoleKeyReferenceBuilder\getKey
getKey()
Definition:
AssociateRoleKeyReferenceBuilder.php:37
Commercetools\Api\Models\AssociateRole\AssociateRoleKeyReferenceBuilder\build
build()
Definition:
AssociateRoleKeyReferenceBuilder.php:54
Commercetools\Api\Models\AssociateRole\AssociateRoleKeyReferenceBuilder\withKey
withKey(?string $key)
Definition:
AssociateRoleKeyReferenceBuilder.php:46
Commercetools\Api\Models\AssociateRole\AssociateRoleKeyReferenceModel
Definition:
AssociateRoleKeyReferenceModel.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\AssociateRole\AssociateRoleKeyReference
Definition:
AssociateRoleKeyReference.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\AssociateRole
Definition:
AssociateRole.php:9
Generated by
1.9.1