commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
AssociateRole
AssociateRoleSetPermissionsActionBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\AssociateRole
;
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
AssociateRoleSetPermissionsActionBuilder
implements
Builder
22
{
27
private
$permissions;
28
35
public
function
getPermissions
()
36
{
37
return
$this->permissions;
38
}
39
44
public
function
withPermissions
(?array $permissions)
45
{
46
$this->permissions = $permissions;
47
48
return
$this;
49
}
50
51
52
public
function
build
():
AssociateRoleSetPermissionsAction
53
{
54
return
new
AssociateRoleSetPermissionsActionModel
(
55
$this->permissions
56
);
57
}
58
59
public
static
function
of
():
AssociateRoleSetPermissionsActionBuilder
60
{
61
return
new
self
();
62
}
63
}
Commercetools\Api\Models\AssociateRole\AssociateRoleSetPermissionsActionBuilder
Definition:
AssociateRoleSetPermissionsActionBuilder.php:22
Commercetools\Api\Models\AssociateRole\AssociateRoleSetPermissionsActionBuilder\getPermissions
getPermissions()
Definition:
AssociateRoleSetPermissionsActionBuilder.php:35
Commercetools\Api\Models\AssociateRole\AssociateRoleSetPermissionsActionBuilder\withPermissions
withPermissions(?array $permissions)
Definition:
AssociateRoleSetPermissionsActionBuilder.php:44
Commercetools\Api\Models\AssociateRole\AssociateRoleSetPermissionsActionBuilder\build
build()
Definition:
AssociateRoleSetPermissionsActionBuilder.php:52
Commercetools\Api\Models\AssociateRole\AssociateRoleSetPermissionsActionBuilder\of
static of()
Definition:
AssociateRoleSetPermissionsActionBuilder.php:59
Commercetools\Api\Models\AssociateRole\AssociateRoleSetPermissionsActionModel
Definition:
AssociateRoleSetPermissionsActionModel.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\AssociateRole\AssociateRoleSetPermissionsAction
Definition:
AssociateRoleSetPermissionsAction.php:15
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\AssociateRole
Definition:
AssociateRole.php:9
Generated by
1.9.1