public function patch(
        string $definition,
        RequestHandlerInterface $handler,
        ?string $name = null,
        $data = null
    ): Route {
        return $this->route(Method::PATCH, $definition, $handler, $name, $data);
    }
public function patch(
        string $definition,
        RequestHandlerInterface $handler,
        ?string $name = null,
        $data = null
    ): Route {
        return $this->route(Method::PATCH, $definition, $handler, $name, $data);
    }
public function patch ( string $ definition , RequestHandlerInterface $ handler , ? string $ name = null , $ data = null ) : Route { return $ this -> route ( Method :: PATCH , $ definition , $ handler , $ name , $ data ) ; }
Creates a PATCH route.

@param string $definition
@param RequestHandlerInterface $handler
@param null|string $name
@param null|mixed $data
@return Route
@throws InvalidRoute
Creates a PATCH route .