/**
  * Add a (direct) parent role to this role.
  *
  * @param \TYPO3\Flow\Security\Policy\Role $role
  * @return void
  */
 public function addParentRole(\TYPO3\Flow\Security\Policy\Role $role)
 {
     if (!$this->parentRoles->contains($role)) {
         $this->parentRoles->add($role);
     }
 }
 /**
  * Adds a role to this account
  *
  * @param \TYPO3\Flow\Security\Policy\Role $role
  * @return void
  */
 public function addRole(\TYPO3\Flow\Security\Policy\Role $role)
 {
     if (!$this->hasRole($role)) {
         $this->roles->add($role);
     }
 }