original_string: public function addRoute(Route $route, $name = null)
      {
          if (null === $name) {
              // used as a flag to know which routes will need a name later
              $name = '_unnamed_route_'.spl_object_hash($route);
          }
  
          $this->routes[$name] = $route;
  
          return $this;
      }
code: public function addRoute(Route $route, $name = null)
      {
          if (null === $name) {
              // used as a flag to know which routes will need a name later
              $name = '_unnamed_route_'.spl_object_hash($route);
          }
  
          $this->routes[$name] = $route;
  
          return $this;
      }
code_tokens: public function addRoute ( Route $ route , $ name = null ) { if ( null === $ name ) { // used as a flag to know which routes will need a name later $ name = '_unnamed_route_' . spl_object_hash ( $ route ) ; } $ this -> routes [ $ name ] = $ route ; return $ this ; }
docstring: Adds a Route object to the builder.
  
  @param Route       $route
  @param string|null $name
  
  @return $this
docstring_tokens: Adds a Route object to the builder .