commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
BusinessUnitConfigurationModel.php
1<?php
2
3declare(strict_types=1);
10
17use stdClass;
18
23{
29
35
36
40 public function __construct(
43 ) {
44 $this->myBusinessUnitStatusOnCreation = $myBusinessUnitStatusOnCreation;
45 $this->myBusinessUnitAssociateRoleOnCreation = $myBusinessUnitAssociateRoleOnCreation;
46 }
47
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
66 }
67
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
87 }
88
89
94 {
95 $this->myBusinessUnitStatusOnCreation = $myBusinessUnitStatusOnCreation;
96 }
97
105}
setMyBusinessUnitAssociateRoleOnCreation(?AssociateRoleKeyReference $myBusinessUnitAssociateRoleOnCreation)
__construct(?string $myBusinessUnitStatusOnCreation=null, ?AssociateRoleKeyReference $myBusinessUnitAssociateRoleOnCreation=null)