|
PocketMine-MP 5.36.1 git-eaa7c4834c8fe2f379d24e7f0ee6cc63cfb18ccc
|
Collaboration diagram for pocketmine\permission\Permission:Public Member Functions | |
| __construct (private string $name, Translatable|string|null $description=null, private array $children=[]) | |
| addChild (string $name, bool $value) | |
| getChildren () | |
| getDescription () | |
| getName () | |
| getPermissibles () | |
| recalculatePermissibles () | |
| removeChild (string $name) | |
| setDescription (Translatable|string $value) | |
Represents a permission
Definition at line 35 of file Permission.php.
| pocketmine\permission\Permission::__construct | ( | private string | $name, |
| Translatable|string|null | $description = null, | ||
| private array | $children = [] ) |
Creates a new Permission object to be attached to Permissible objects
| bool[] | $children | @phpstan-param array<string, bool> $children |
Definition at line 44 of file Permission.php.
| pocketmine\permission\Permission::addChild | ( | string | $name, |
| bool | $value ) |
Definition at line 89 of file Permission.php.
| pocketmine\permission\Permission::getChildren | ( | ) |
Definition at line 62 of file Permission.php.
| pocketmine\permission\Permission::getDescription | ( | ) |
Definition at line 66 of file Permission.php.
| pocketmine\permission\Permission::getName | ( | ) |
Definition at line 54 of file Permission.php.
| pocketmine\permission\Permission::getPermissibles | ( | ) |
Definition at line 77 of file Permission.php.
| pocketmine\permission\Permission::recalculatePermissibles | ( | ) |
Definition at line 81 of file Permission.php.
| pocketmine\permission\Permission::removeChild | ( | string | $name | ) |
Definition at line 94 of file Permission.php.
| pocketmine\permission\Permission::setDescription | ( | Translatable|string | $value | ) |
Definition at line 70 of file Permission.php.