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";
        }
    }
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";
        }
    }
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" ; } }
Assigns child role to parent

@param string $parent Parent role name
@param string $child Child role name
Assigns child role to parent