src/mako/http/routing/Routes.php
public function getNamedRoute(string $name): Route
	{
		if(!isset($this->namedRoutes[$name]))
		{
			throw new RuntimeException(vsprintf('No route named [ %s ] has been defined.', [$name]));
		}

		return $this->namedRoutes[$name];
	}
public function getNamedRoute(string $name): Route
	{
		if(!isset($this->namedRoutes[$name]))
		{
			throw new RuntimeException(vsprintf('No route named [ %s ] has been defined.', [$name]));
		}

		return $this->namedRoutes[$name];
	}
public function getNamedRoute ( string $ name ) : Route { if ( ! isset ( $ this -> namedRoutes [ $ name ] ) ) { throw new RuntimeException ( vsprintf ( 'No route named [ %s ] has been defined.' , [ $ name ] ) ) ; } return $ this -> namedRoutes [ $ name ] ; }
Returns the named route.

@param  string                   $name Route name
@throws \RuntimeException
@return \mako\http\routing\Route
Returns the named route .