commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
lib
commercetools-api
src
Models
Project
BusinessUnitConfigurationBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Project
;
10
11
use
Commercetools\Api\Models\AssociateRole\AssociateRoleKeyReference
;
12
use
Commercetools\Api\Models\AssociateRole\AssociateRoleKeyReferenceBuilder
;
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
BusinessUnitConfigurationBuilder
implements
Builder
24
{
29
private
$myBusinessUnitStatusOnCreation;
30
35
private
$myBusinessUnitAssociateRoleOnCreation;
36
43
public
function
getMyBusinessUnitStatusOnCreation
()
44
{
45
return
$this->myBusinessUnitStatusOnCreation;
46
}
47
54
public
function
getMyBusinessUnitAssociateRoleOnCreation
()
55
{
56
return
$this->myBusinessUnitAssociateRoleOnCreation instanceof
AssociateRoleKeyReferenceBuilder
? $this->myBusinessUnitAssociateRoleOnCreation->
build
() : $this->myBusinessUnitAssociateRoleOnCreation;
57
}
58
63
public
function
withMyBusinessUnitStatusOnCreation
(?
string
$myBusinessUnitStatusOnCreation)
64
{
65
$this->myBusinessUnitStatusOnCreation = $myBusinessUnitStatusOnCreation;
66
67
return
$this;
68
}
69
74
public
function
withMyBusinessUnitAssociateRoleOnCreation
(?
AssociateRoleKeyReference
$myBusinessUnitAssociateRoleOnCreation)
75
{
76
$this->myBusinessUnitAssociateRoleOnCreation = $myBusinessUnitAssociateRoleOnCreation;
77
78
return
$this;
79
}
80
85
public
function
withMyBusinessUnitAssociateRoleOnCreationBuilder
(?
AssociateRoleKeyReferenceBuilder
$myBusinessUnitAssociateRoleOnCreation)
86
{
87
$this->myBusinessUnitAssociateRoleOnCreation = $myBusinessUnitAssociateRoleOnCreation;
88
89
return
$this;
90
}
91
92
public
function
build
():
BusinessUnitConfiguration
93
{
94
return
new
BusinessUnitConfigurationModel
(
95
$this->myBusinessUnitStatusOnCreation,
96
$this->myBusinessUnitAssociateRoleOnCreation instanceof
AssociateRoleKeyReferenceBuilder
? $this->myBusinessUnitAssociateRoleOnCreation->
build
() : $this->myBusinessUnitAssociateRoleOnCreation
97
);
98
}
99
100
public
static
function
of
():
BusinessUnitConfigurationBuilder
101
{
102
return
new
self
();
103
}
104
}
Commercetools\Api\Models\AssociateRole\AssociateRoleKeyReferenceBuilder
Definition
AssociateRoleKeyReferenceBuilder.php:24
Commercetools\Api\Models\AssociateRole\AssociateRoleKeyReferenceBuilder\build
build()
Definition
AssociateRoleKeyReferenceBuilder.php:54
Commercetools\Api\Models\Project\BusinessUnitConfigurationBuilder
Definition
BusinessUnitConfigurationBuilder.php:24
Commercetools\Api\Models\Project\BusinessUnitConfigurationBuilder\getMyBusinessUnitAssociateRoleOnCreation
getMyBusinessUnitAssociateRoleOnCreation()
Definition
BusinessUnitConfigurationBuilder.php:54
Commercetools\Api\Models\Project\BusinessUnitConfigurationBuilder\build
build()
Definition
BusinessUnitConfigurationBuilder.php:92
Commercetools\Api\Models\Project\BusinessUnitConfigurationBuilder\of
static of()
Definition
BusinessUnitConfigurationBuilder.php:100
Commercetools\Api\Models\Project\BusinessUnitConfigurationBuilder\getMyBusinessUnitStatusOnCreation
getMyBusinessUnitStatusOnCreation()
Definition
BusinessUnitConfigurationBuilder.php:43
Commercetools\Api\Models\Project\BusinessUnitConfigurationBuilder\withMyBusinessUnitAssociateRoleOnCreationBuilder
withMyBusinessUnitAssociateRoleOnCreationBuilder(?AssociateRoleKeyReferenceBuilder $myBusinessUnitAssociateRoleOnCreation)
Definition
BusinessUnitConfigurationBuilder.php:85
Commercetools\Api\Models\Project\BusinessUnitConfigurationBuilder\withMyBusinessUnitStatusOnCreation
withMyBusinessUnitStatusOnCreation(?string $myBusinessUnitStatusOnCreation)
Definition
BusinessUnitConfigurationBuilder.php:63
Commercetools\Api\Models\Project\BusinessUnitConfigurationBuilder\withMyBusinessUnitAssociateRoleOnCreation
withMyBusinessUnitAssociateRoleOnCreation(?AssociateRoleKeyReference $myBusinessUnitAssociateRoleOnCreation)
Definition
BusinessUnitConfigurationBuilder.php:74
Commercetools\Api\Models\Project\BusinessUnitConfigurationModel
Definition
BusinessUnitConfigurationModel.php:23
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\Project\BusinessUnitConfiguration
Definition
BusinessUnitConfiguration.php:16
Commercetools\Base\Builder
Definition
Builder.php:16
Commercetools\Base\JsonObject
Definition
JsonObject.php:15
Commercetools\Api\Models\Project
Definition
BusinessUnitConfiguration.php:9
Generated by
1.9.8