public function oneNamed(string $name): ?Route
    {
        if (!array_key_exists($name, $this->named)) {
            return null;
        }

        return $this->named[$name];
    }
public function oneNamed(string $name): ?Route
    {
        if (!array_key_exists($name, $this->named)) {
            return null;
        }

        return $this->named[$name];
    }
public function oneNamed ( string $ name ) : ? Route { if ( ! array_key_exists ( $ name , $ this -> named ) ) { return null ; } return $ this -> named [ $ name ] ; }
Returns one route with the given name.

@param string $name
@return null|Route
Returns one route with the given name .