PocketMine-MP 5.23.3 git-976fc63567edab7a6fb6aeae739f43cf9fe57de4
Loading...
Searching...
No Matches
pocketmine\permission\PermissionAttachment Class Reference
+ Collaboration diagram for pocketmine\permission\PermissionAttachment:

Public Member Functions

 __construct (private Plugin $plugin)
 
 clearPermissions ()
 
 getPermissions ()
 
 getPlugin ()
 
 getSubscribers ()
 
 setPermission (Permission|string $name, bool $value)
 
 setPermissions (array $permissions)
 
 subscribePermissible (PermissibleInternal $permissible)
 
 unsetPermission (Permission|string $name)
 
 unsetPermissions (array $permissions)
 
 unsubscribePermissible (PermissibleInternal $permissible)
 

Detailed Description

Definition at line 31 of file PermissionAttachment.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\permission\PermissionAttachment::__construct ( private Plugin $plugin)
Exceptions
PluginException

Definition at line 47 of file PermissionAttachment.php.

Member Function Documentation

◆ clearPermissions()

pocketmine\permission\PermissionAttachment::clearPermissions ( )

Definition at line 79 of file PermissionAttachment.php.

◆ getPermissions()

pocketmine\permission\PermissionAttachment::getPermissions ( )
Returns
bool[] @phpstan-return array<string, bool>

Definition at line 69 of file PermissionAttachment.php.

◆ getPlugin()

pocketmine\permission\PermissionAttachment::getPlugin ( )

Definition at line 55 of file PermissionAttachment.php.

◆ getSubscribers()

pocketmine\permission\PermissionAttachment::getSubscribers ( )
Returns
PermissibleInternal[] @phpstan-return array<int, PermissibleInternal>

Definition at line 63 of file PermissionAttachment.php.

◆ setPermission()

pocketmine\permission\PermissionAttachment::setPermission ( Permission|string $name,
bool $value )

Definition at line 105 of file PermissionAttachment.php.

◆ setPermissions()

pocketmine\permission\PermissionAttachment::setPermissions ( array $permissions)
Parameters
bool[]$permissions@phpstan-param array<string, bool> $permissions

Definition at line 88 of file PermissionAttachment.php.

◆ subscribePermissible()

pocketmine\permission\PermissionAttachment::subscribePermissible ( PermissibleInternal $permissible)

Definition at line 137 of file PermissionAttachment.php.

◆ unsetPermission()

pocketmine\permission\PermissionAttachment::unsetPermission ( Permission|string $name)

Definition at line 126 of file PermissionAttachment.php.

◆ unsetPermissions()

pocketmine\permission\PermissionAttachment::unsetPermissions ( array $permissions)
Parameters
string[]$permissions

Definition at line 98 of file PermissionAttachment.php.

◆ unsubscribePermissible()

pocketmine\permission\PermissionAttachment::unsubscribePermissible ( PermissibleInternal $permissible)

Definition at line 144 of file PermissionAttachment.php.


The documentation for this class was generated from the following file: