Permission: added removeChild()

this probably isn't useful at all, but it's best to provide alternatives for all the stuff that getChildren() could have been used for ...
This commit is contained in:
Dylan K. Taylor 2020-11-27 20:31:24 +00:00
parent 3849756993
commit aa67c4894f

View File

@ -121,4 +121,10 @@ class Permission{
$this->children[$name] = $value;
$this->recalculatePermissibles();
}
public function removeChild(string $name) : void{
unset($this->children[$name]);
$this->recalculatePermissibles();
}
}