commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Me
MyBusinessUnitUpdateBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Me
;
10
11
use
Commercetools\Api\Models\BusinessUnit\BusinessUnitUpdateActionCollection
;
12
use
Commercetools\Base\Builder
;
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
MyBusinessUnitUpdateBuilder
implements
Builder
23
{
28
private
$version;
29
34
private
$actions;
35
43
public
function
getVersion
()
44
{
45
return
$this->version;
46
}
47
54
public
function
getActions
()
55
{
56
return
$this->actions;
57
}
58
63
public
function
withVersion
(?
int
$version)
64
{
65
$this->version = $version;
66
67
return
$this;
68
}
69
74
public
function
withActions
(?
BusinessUnitUpdateActionCollection
$actions)
75
{
76
$this->actions = $actions;
77
78
return
$this;
79
}
80
81
82
public
function
build
():
MyBusinessUnitUpdate
83
{
84
return
new
MyBusinessUnitUpdateModel
(
85
$this->version,
86
$this->actions
87
);
88
}
89
90
public
static
function
of
():
MyBusinessUnitUpdateBuilder
91
{
92
return
new
self
();
93
}
94
}
Commercetools\Api\Models\BusinessUnit\BusinessUnitUpdateActionCollection
Definition:
BusinessUnitUpdateActionCollection.php:26
Commercetools\Api\Models\Me\MyBusinessUnitUpdateBuilder
Definition:
MyBusinessUnitUpdateBuilder.php:23
Commercetools\Api\Models\Me\MyBusinessUnitUpdateBuilder\withVersion
withVersion(?int $version)
Definition:
MyBusinessUnitUpdateBuilder.php:63
Commercetools\Api\Models\Me\MyBusinessUnitUpdateBuilder\getVersion
getVersion()
Definition:
MyBusinessUnitUpdateBuilder.php:43
Commercetools\Api\Models\Me\MyBusinessUnitUpdateBuilder\of
static of()
Definition:
MyBusinessUnitUpdateBuilder.php:90
Commercetools\Api\Models\Me\MyBusinessUnitUpdateBuilder\getActions
getActions()
Definition:
MyBusinessUnitUpdateBuilder.php:54
Commercetools\Api\Models\Me\MyBusinessUnitUpdateBuilder\build
build()
Definition:
MyBusinessUnitUpdateBuilder.php:82
Commercetools\Api\Models\Me\MyBusinessUnitUpdateBuilder\withActions
withActions(?BusinessUnitUpdateActionCollection $actions)
Definition:
MyBusinessUnitUpdateBuilder.php:74
Commercetools\Api\Models\Me\MyBusinessUnitUpdateModel
Definition:
MyBusinessUnitUpdateModel.php:22
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition:
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition:
MapperFactory.php:16
Commercetools\Api\Models\Me\MyBusinessUnitUpdate
Definition:
MyBusinessUnitUpdate.php:16
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Me
Definition:
MyBusinessUnitAddAddressAction.php:9
Generated by
1.9.1