PermissionAttachmentInfo
in package
Table of Contents
- $attachment : PermissionAttachment|null
- $groupPermission : PermissionAttachmentInfo|null
- $permission : string
- $value : bool
- __construct() : mixed
- getAttachment() : PermissionAttachment|null
- getGroupPermissionInfo() : PermissionAttachmentInfo|null
- Returns the info of the permission group that caused this permission to be set, if any.
- getPermission() : string
- getValue() : bool
Properties
$attachment
private
PermissionAttachment|null
$attachment
$groupPermission
private
PermissionAttachmentInfo|null
$groupPermission
$permission
private
string
$permission
$value
private
bool
$value
Methods
__construct()
public
__construct(string $permission, PermissionAttachment|null $attachment, bool $value, PermissionAttachmentInfo|null $groupPermission) : mixed
Parameters
- $permission : string
- $attachment : PermissionAttachment|null
- $value : bool
- $groupPermission : PermissionAttachmentInfo|null
Return values
mixed —getAttachment()
public
getAttachment() : PermissionAttachment|null
Return values
PermissionAttachment|null —getGroupPermissionInfo()
Returns the info of the permission group that caused this permission to be set, if any.
public
getGroupPermissionInfo() : PermissionAttachmentInfo|null
If null, the permission was set explicitly, either by a permission attachment or base permission.
Return values
PermissionAttachmentInfo|null —getPermission()
public
getPermission() : string
Return values
string —getValue()
public
getValue() : bool