This class represents a draft of a role.
Constants¶
                 STATUS_DEFINED        ¶
STATUS_DEFINED        ¶
    
        
        Role.php
                :
        23
                 
    
        |  |  | 
Status constant for defined (aka "published") role
                 STATUS_DRAFT        ¶
STATUS_DRAFT        ¶
    
        
        Role.php
                :
        26
                 
    
        |  |  | 
Status constant for draft (aka "temporary") role
Properties¶
                 $id
            ¶
        $id
            ¶
    
        
        Role.php
                 
    
        |  |  | 
the internal id of the role
                 $identifier
            ¶
        $identifier
            ¶
    
        
        Role.php
                 
    
        |  |  | 
the identifier of the role
                 $policies
            ¶
        $policies
            ¶
    
        
        RoleDraft.php
                 
    
        |  |  | 
                 $status
            ¶
        $status
            ¶
    
        
        Role.php
                :
        48
                 
    
        The status of the role.
|  |  | 
One of Role::STATUS_DEFINED|Role::STATUS_DRAFT
Methods¶
                 __construct()
            ¶
__construct()
            ¶
    
        
        ValueObject.php
                :
        31
                 
    
        Construct object optionally with a set of 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> | [] | - | 
                 getPolicies()
            ¶
getPolicies()
            ¶
    
        
        Role.php
                :
        60
                 
    
        Returns the list of policies of this role.
|  |  | 
Return values
array<string|int, Policy>
                 getStatus()
            ¶
getStatus()
            ¶
    
        
        Role.php
                :
        50
                 
    
        |  |  | 
Return values
int
                 getProperties()
            ¶
getProperties()
            ¶
    
        
        ValueObject.php
                :
        54
                 
    
        Returns list of available properties' names.
|  |  | 
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>