Pop\Auth\Role::addChild PHP Method

addChild() public method

Method to add a child role
public addChild ( mixed $role ) : Role
$role mixed
return Role
    public function addChild($role)
    {
        $child = $role instanceof Role ? $role : new Role($role);
        $child->setParent($this);
        $this->children[] = $child;
        return $this;
    }