public function getNamedRoute(string $name): ?Route
    {
        if (!isset($this->namedRoutes[$name])) {
            return null;
        }

        return $this->namedRoutes[$name];
    }
public function getNamedRoute(string $name): ?Route
    {
        if (!isset($this->namedRoutes[$name])) {
            return null;
        }

        return $this->namedRoutes[$name];
    }
public function getNamedRoute ( string $ name ) : ? Route { if ( ! isset ( $ this -> namedRoutes [ $ name ] ) ) { return null ; } return $ this -> namedRoutes [ $ name ] ; }
Gets the route with the input name

@param string $name The name to search for
@return Route|null The route with the input name if one existed, otherwise null
Gets the route with the input name