47 private array $children = []
49 $this->description = $description ??
"";
51 $this->recalculatePermissibles();
54 public function getName() : string{
63 return $this->children;
67 return $this->description;
70 public function setDescription(
Translatable|
string $value) : void{
71 $this->description = $value;
81 public function recalculatePermissibles() : void{
82 $perms = $this->getPermissibles();
84 foreach($perms as $p){
85 $p->recalculatePermissions();
89 public function addChild(
string $name,
bool $value) : void{
90 $this->children[$name] = $value;
91 $this->recalculatePermissibles();
94 public function removeChild(
string $name) : void{
95 unset($this->children[$name]);
96 $this->recalculatePermissibles();