original_string: protected function getDefaultRouteName(\ReflectionClass $class, \ReflectionMethod $method)
      {
          $name = strtolower(str_replace('\\', '_', $class->name).'_'.$method->name);
          if ($this->defaultRouteIndex > 0) {
              $name .= '_'.$this->defaultRouteIndex;
          }
          ++$this->defaultRouteIndex;
  
          return $name;
      }
code: protected function getDefaultRouteName(\ReflectionClass $class, \ReflectionMethod $method)
      {
          $name = strtolower(str_replace('\\', '_', $class->name).'_'.$method->name);
          if ($this->defaultRouteIndex > 0) {
              $name .= '_'.$this->defaultRouteIndex;
          }
          ++$this->defaultRouteIndex;
  
          return $name;
      }
code_tokens: protected function getDefaultRouteName ( \ ReflectionClass $ class , \ ReflectionMethod $ method ) { $ name = strtolower ( str_replace ( '\\' , '_' , $ class -> name ) . '_' . $ method -> name ) ; if ( $ this -> defaultRouteIndex > 0 ) { $ name .= '_' . $ this -> defaultRouteIndex ; } ++ $ this -> defaultRouteIndex ; return $ name ; }
docstring: Gets the default route name for a class method.
  
  @param \ReflectionClass  $class
  @param \ReflectionMethod $method
  
  @return string
docstring_tokens: Gets the default route name for a class method .