public function getRouteByName($routeName)
    {
        if (!empty($this->routeNameMap[$routeName])) {
            return $this->routeNameMap[$routeName];
        }

        return null;
    }
public function getRouteByName($routeName)
    {
        if (!empty($this->routeNameMap[$routeName])) {
            return $this->routeNameMap[$routeName];
        }

        return null;
    }
public function getRouteByName ( $ routeName ) { if ( ! empty ( $ this -> routeNameMap [ $ routeName ] ) ) { return $ this -> routeNameMap [ $ routeName ] ; } return null ; }
Gets a route by name

@param string $routeName
@return null|\Slab\Router\Route
Gets a route by name