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
BusinessUnitConfigurationModel.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\AssociateRoleKeyReferenceModel
;
13
use
Commercetools\Base\DateTimeImmutableCollection
;
14
use
Commercetools\Base\JsonObject
;
15
use
Commercetools\Base\JsonObjectModel
;
16
use
Commercetools\Base\MapperFactory
;
17
use stdClass;
18
22
final
class
BusinessUnitConfigurationModel
extends
JsonObjectModel
implements
BusinessUnitConfiguration
23
{
28
protected
$myBusinessUnitStatusOnCreation
;
29
34
protected
$myBusinessUnitAssociateRoleOnCreation
;
35
36
40
public
function
__construct
(
41
?
string
$myBusinessUnitStatusOnCreation
=
null
,
42
?
AssociateRoleKeyReference
$myBusinessUnitAssociateRoleOnCreation
=
null
43
) {
44
$this->myBusinessUnitStatusOnCreation =
$myBusinessUnitStatusOnCreation
;
45
$this->myBusinessUnitAssociateRoleOnCreation =
$myBusinessUnitAssociateRoleOnCreation
;
46
}
47
54
public
function
getMyBusinessUnitStatusOnCreation
()
55
{
56
if
(is_null($this->myBusinessUnitStatusOnCreation)) {
58
$data = $this->
raw
(self::FIELD_MY_BUSINESS_UNIT_STATUS_ON_CREATION);
59
if
(is_null($data)) {
60
return
null
;
61
}
62
$this->myBusinessUnitStatusOnCreation = (string) $data;
63
}
64
65
return
$this->myBusinessUnitStatusOnCreation
;
66
}
67
74
public
function
getMyBusinessUnitAssociateRoleOnCreation
()
75
{
76
if
(is_null($this->myBusinessUnitAssociateRoleOnCreation)) {
78
$data = $this->
raw
(self::FIELD_MY_BUSINESS_UNIT_ASSOCIATE_ROLE_ON_CREATION);
79
if
(is_null($data)) {
80
return
null
;
81
}
82
83
$this->myBusinessUnitAssociateRoleOnCreation = AssociateRoleKeyReferenceModel::of($data);
84
}
85
86
return
$this->myBusinessUnitAssociateRoleOnCreation
;
87
}
88
89
93
public
function
setMyBusinessUnitStatusOnCreation
(?
string
$myBusinessUnitStatusOnCreation
): void
94
{
95
$this->myBusinessUnitStatusOnCreation =
$myBusinessUnitStatusOnCreation
;
96
}
97
101
public
function
setMyBusinessUnitAssociateRoleOnCreation
(?
AssociateRoleKeyReference
$myBusinessUnitAssociateRoleOnCreation
): void
102
{
103
$this->myBusinessUnitAssociateRoleOnCreation =
$myBusinessUnitAssociateRoleOnCreation
;
104
}
105
}
Commercetools\Api\Models\AssociateRole\AssociateRoleKeyReferenceModel
Definition
AssociateRoleKeyReferenceModel.php:23
Commercetools\Api\Models\Project\BusinessUnitConfigurationModel
Definition
BusinessUnitConfigurationModel.php:23
Commercetools\Api\Models\Project\BusinessUnitConfigurationModel\getMyBusinessUnitAssociateRoleOnCreation
getMyBusinessUnitAssociateRoleOnCreation()
Definition
BusinessUnitConfigurationModel.php:74
Commercetools\Api\Models\Project\BusinessUnitConfigurationModel\getMyBusinessUnitStatusOnCreation
getMyBusinessUnitStatusOnCreation()
Definition
BusinessUnitConfigurationModel.php:54
Commercetools\Api\Models\Project\BusinessUnitConfigurationModel\$myBusinessUnitAssociateRoleOnCreation
$myBusinessUnitAssociateRoleOnCreation
Definition
BusinessUnitConfigurationModel.php:34
Commercetools\Api\Models\Project\BusinessUnitConfigurationModel\setMyBusinessUnitAssociateRoleOnCreation
setMyBusinessUnitAssociateRoleOnCreation(?AssociateRoleKeyReference $myBusinessUnitAssociateRoleOnCreation)
Definition
BusinessUnitConfigurationModel.php:101
Commercetools\Api\Models\Project\BusinessUnitConfigurationModel\__construct
__construct(?string $myBusinessUnitStatusOnCreation=null, ?AssociateRoleKeyReference $myBusinessUnitAssociateRoleOnCreation=null)
Definition
BusinessUnitConfigurationModel.php:40
Commercetools\Api\Models\Project\BusinessUnitConfigurationModel\setMyBusinessUnitStatusOnCreation
setMyBusinessUnitStatusOnCreation(?string $myBusinessUnitStatusOnCreation)
Definition
BusinessUnitConfigurationModel.php:93
Commercetools\Api\Models\Project\BusinessUnitConfigurationModel\$myBusinessUnitStatusOnCreation
$myBusinessUnitStatusOnCreation
Definition
BusinessUnitConfigurationModel.php:28
Commercetools\Base\BaseJsonObject\raw
raw(string $field)
Definition
BaseJsonObject.php:57
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\JsonObject
Definition
JsonObject.php:15
Commercetools\Api\Models\Project
Definition
BusinessUnitConfiguration.php:9
Generated by
1.9.8