public function getUriRouteFor(string $method): ?Route
    {
        if (!$this->isMethodAllowed($method)) {
            return null;
        }

        return $this->uriRoutes[$method];
    }
public function getUriRouteFor(string $method): ?Route
    {
        if (!$this->isMethodAllowed($method)) {
            return null;
        }

        return $this->uriRoutes[$method];
    }
public function getUriRouteFor ( string $ method ) : ? Route { if ( ! $ this -> isMethodAllowed ( $ method ) ) { return null ; } return $ this -> uriRoutes [ $ method ] ; }
Returns the route for the given method if it exists.

@param string $method
@return null|Route
Returns the route for the given method if it exists .