Copied!

UserGroupRoleAssignment

UserGroupRoleAssignment.php : 16
Extends RoleAssignment

This class represents a user group to role assignment.

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

public $userGroup read-only

UserGroupRoleAssignment.php
public UserGroup $userGroup

calls getUserGroup()

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

publicgetUserGroup()

UserGroupRoleAssignment.php : 23

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

public abstract getUserGroup() : UserGroup

Return values

UserGroup

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>