public function setParentRoles(array $parentRoles)
    {
        $this->parentRoles = [];
        foreach ($parentRoles as $parentRole) {
            $this->addParentRole($parentRole);
        }
    }
public function setParentRoles(array $parentRoles)
    {
        $this->parentRoles = [];
        foreach ($parentRoles as $parentRole) {
            $this->addParentRole($parentRole);
        }
    }
public function setParentRoles ( array $ parentRoles ) { $ this -> parentRoles = [ ] ; foreach ( $ parentRoles as $ parentRole ) { $ this -> addParentRole ( $ parentRole ) ; } }
Assign parent roles to this role.

@param Role[] $parentRoles indexed by role identifier
@return void
Assign parent roles to this role .