Copied!

RoleAssignment

RoleAssignment.php : 20
Extends ValueObject

This value object represents an assignment od a user or user group to a role including a limitation.

Properties

public $limitation read-only

RoleAssignment.php
public RoleLimitation|null $limitation

the limitation of this role assignment

public $role read-only

RoleAssignment.php
public Role $role

the role which is assigned to the user or user group

protected $id

RoleAssignment.php : 27

The unique id of the role assignment.

protected int $id

Methods

public__construct()

ValueObject.php : 30

Construct object optionally with a set of properties.

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

Readonly properties values must be set using $properties as they are not writable anymore after object has been created.

Parameters

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

publicgetRole()

RoleAssignment.php : 41

Returns the role to which the user or user group is assigned to.

public abstract getRole() : Role

Return values

Role

publicgetRoleLimitation()

RoleAssignment.php : 34

Returns the limitation of the role assignment.

public abstract getRoleLimitation() : RoleLimitation|null

Return values

RoleLimitation|null

protectedgetProperties()

ValueObject.php : 50

Function where list of properties are returned.

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

Used by attributes(), override to add dynamic properties

Parameters

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

Additional dynamic properties exposed on the object

Return values

array<string|int, mixed>