original_string: public function getNamedRoutes()
      {
          if (is_null($this->namedRoutes)) {
              $this->namedRoutes = array();
              foreach ($this->routes as $route) {
                  if ($route->getName() !== null) {
                      $this->addNamedRoute($route->getName(), $route);
                  }
              }
          }
  
          return new \ArrayIterator($this->namedRoutes);
      }
code: public function getNamedRoutes()
      {
          if (is_null($this->namedRoutes)) {
              $this->namedRoutes = array();
              foreach ($this->routes as $route) {
                  if ($route->getName() !== null) {
                      $this->addNamedRoute($route->getName(), $route);
                  }
              }
          }
  
          return new \ArrayIterator($this->namedRoutes);
      }
code_tokens: public function getNamedRoutes ( ) { if ( is_null ( $ this -> namedRoutes ) ) { $ this -> namedRoutes = array ( ) ; foreach ( $ this -> routes as $ route ) { if ( $ route -> getName ( ) !== null ) { $ this -> addNamedRoute ( $ route -> getName ( ) , $ route ) ; } } } return new \ ArrayIterator ( $ this -> namedRoutes ) ; }
docstring: Get external iterator for named routes
  @return \ArrayIterator
  @api
docstring_tokens: Get external iterator for named routes