original_string: protected function isRoleReached(Role $childRole, Role $parentRole)
      {
          $reachableRoles = $this->roleHierarchy
                  ->getReachableRoles([$parentRole]);
          
          return in_array($childRole, $reachableRoles);
      }
code: protected function isRoleReached(Role $childRole, Role $parentRole)
      {
          $reachableRoles = $this->roleHierarchy
                  ->getReachableRoles([$parentRole]);
          
          return in_array($childRole, $reachableRoles);
      }
code_tokens: protected function isRoleReached ( Role $ childRole , Role $ parentRole ) { $ reachableRoles = $ this -> roleHierarchy -> getReachableRoles ( [ $ parentRole ] ) ; return in_array ( $ childRole , $ reachableRoles ) ; }
docstring: Test if a parent role may give access to a given child role
  
  @param Role $childRole The role we want to test if he is reachable
  @param Role $parentRole The role which should give access to $childRole
  @return boolean true if the child role is granted by parent role
docstring_tokens: Test if a parent role may give access to a given child role