Copied!

RoleCopyStruct

RoleCopyStruct.php : 14
Abstract

This class is used to copy an existing role.

Properties

public $identifier

RoleCreateStruct.php : 23

Readable string identifier of a role.

public string $identifier

public $newIdentifier

RoleCopyStruct.php : 21

Readable string identifier of a new role.

public string $newIdentifier

public $status

RoleCopyStruct.php : 28

Status of a new role.

public int $status

Methods

public__construct()

ValueObject.php : 31

Construct object optionally with a set of properties.

public __construct([array<string, mixed> $properties = [] ])

Readonly properties values must be set using $properties as they aren't writable anymore after object has been created.

Parameters

Name Type Default value Description
$properties array<string, mixed> [] -

publicaddPolicy()

RoleCreateStruct.php : 37

Adds a policy to this role.

public abstract addPolicy(PolicyCreateStruct $policyCreateStruct) : void

Parameters

Name Type Default value Description
$policyCreateStruct PolicyCreateStruct - -

publicgetPolicies()

RoleCreateStruct.php : 30

Returns policies associated with the role.

public abstract getPolicies() : array<string|int, PolicyCreateStruct>

Return values

array<string|int, PolicyCreateStruct>

protectedgetProperties()

ValueObject.php : 54

Returns list of available properties' names.

protected getProperties([array<int, string> $dynamicProperties = [] ]) : array<int, string>

Override to add dynamic properties.

Parameters

Name Type Default value Description
$dynamicProperties array<int, string> []

Additional dynamic properties exposed on the object

Return values

array<int, string>

Tags
Serializerignore

()