commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
State
StateSetRolesActionBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\State
;
10
11
use
Commercetools\Base\Builder
;
12
use
Commercetools\Base\DateTimeImmutableCollection
;
13
use
Commercetools\Base\JsonObject
;
14
use
Commercetools\Base\JsonObjectModel
;
15
use
Commercetools\Base\MapperFactory
;
16
use stdClass;
17
21
final
class
StateSetRolesActionBuilder
implements
Builder
22
{
27
private
$roles;
28
36
public
function
getRoles
()
37
{
38
return
$this->roles;
39
}
40
45
public
function
withRoles
(?array $roles)
46
{
47
$this->roles = $roles;
48
49
return
$this;
50
}
51
52
53
public
function
build
():
StateSetRolesAction
54
{
55
return
new
StateSetRolesActionModel
(
56
$this->roles
57
);
58
}
59
60
public
static
function
of
():
StateSetRolesActionBuilder
61
{
62
return
new
self
();
63
}
64
}
Commercetools\Api\Models\State\StateSetRolesActionBuilder
Definition:
StateSetRolesActionBuilder.php:22
Commercetools\Api\Models\State\StateSetRolesActionBuilder\withRoles
withRoles(?array $roles)
Definition:
StateSetRolesActionBuilder.php:45
Commercetools\Api\Models\State\StateSetRolesActionBuilder\of
static of()
Definition:
StateSetRolesActionBuilder.php:60
Commercetools\Api\Models\State\StateSetRolesActionBuilder\getRoles
getRoles()
Definition:
StateSetRolesActionBuilder.php:36
Commercetools\Api\Models\State\StateSetRolesActionBuilder\build
build()
Definition:
StateSetRolesActionBuilder.php:53
Commercetools\Api\Models\State\StateSetRolesActionModel
Definition:
StateSetRolesActionModel.php:21
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition:
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition:
MapperFactory.php:16
Commercetools\Api\Models\State\StateSetRolesAction
Definition:
StateSetRolesAction.php:15
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\State
Definition:
State.php:9
Generated by
1.9.1