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);
    }
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);
    }
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 ) ; }
Get external iterator for named routes
@return \ArrayIterator
@api
Get external iterator for named routes