public function multiple(array $methods, string $path, $controller, array $options = []) : array
    {
        $routes = [];

        foreach ($methods as $method) {
            $route = $this->createRoute($method, $path, $controller, $options);
            $parsedRoute = $this->addRoute($route);
            $routes[] = $parsedRoute;
        }

        return $routes;
    }
public function multiple(array $methods, string $path, $controller, array $options = []) : array
    {
        $routes = [];

        foreach ($methods as $method) {
            $route = $this->createRoute($method, $path, $controller, $options);
            $parsedRoute = $this->addRoute($route);
            $routes[] = $parsedRoute;
        }

        return $routes;
    }
public function multiple ( array $ methods , string $ path , $ controller , array $ options = [ ] ) : array { $ routes = [ ] ; foreach ( $ methods as $ method ) { $ route = $ this -> createRoute ( $ method , $ path , $ controller , $ options ) ; $ parsedRoute = $ this -> addRoute ( $ route ) ; $ routes [ ] = $ parsedRoute ; } return $ routes ; }
Adds a route for multiple methods

@param array $methods The list of methods to match on
@param string $path The path to match on
@param string|callable $controller The name of the controller/method or the callback
@param array $options The list of options for this path
@return ParsedRoute[] The list of routes generated
Adds a route for multiple methods