function assignChildRole($parent, $child) {
        if (!$this->authManager->hasChild($parent, $child)) {
            $this->authManager->addChild($parent, $child);
            echo "New child '{$child->name}' added to '{$parent->name}'\n";
        } else {
            echo "Role '{$child->name}' was already added to '{$parent->name}'\n";
        }
    }