public static function match(array $verbs, string $path, $handler) : array
    {
        $routes = [];

        foreach ($verbs as $verb) {
            switch (strtolower($verb)) {
                case 'get':
                    $routes[] = static::get($path, $handler);
                    break;
                case 'post':
                    $routes[] = static::post($path, $handler);
                    break;
                case 'put':
                    $routes[] = static::put($path, $handler);
                    break;
                case 'patch':
                    $routes[] = static::patch($path, $handler);
                    break;
                case 'delete':
                    $routes[] = static::delete($path, $handler);
                    break;
            }
        }

        return $routes;
    }
public static function match(array $verbs, string $path, $handler) : array
    {
        $routes = [];

        foreach ($verbs as $verb) {
            switch (strtolower($verb)) {
                case 'get':
                    $routes[] = static::get($path, $handler);
                    break;
                case 'post':
                    $routes[] = static::post($path, $handler);
                    break;
                case 'put':
                    $routes[] = static::put($path, $handler);
                    break;
                case 'patch':
                    $routes[] = static::patch($path, $handler);
                    break;
                case 'delete':
                    $routes[] = static::delete($path, $handler);
                    break;
            }
        }

        return $routes;
    }
public static function match ( array $ verbs , string $ path , $ handler ) : array { $ routes = [ ] ; foreach ( $ verbs as $ verb ) { switch ( strtolower ( $ verb ) ) { case 'get' : $ routes [ ] = static :: get ( $ path , $ handler ) ; break ; case 'post' : $ routes [ ] = static :: post ( $ path , $ handler ) ; break ; case 'put' : $ routes [ ] = static :: put ( $ path , $ handler ) ; break ; case 'patch' : $ routes [ ] = static :: patch ( $ path , $ handler ) ; break ; case 'delete' : $ routes [ ] = static :: delete ( $ path , $ handler ) ; break ; } } return $ routes ; }
Add a route that matches the given HTTP verbs
@param array $verbs
@param string $path
@param $handler
@return array
@since 1.4.0
Add a route that matches the given HTTP verbs