Sets the HTTP methods (e.g. 'POST') all child routes are restricted to.
string|string[] $methods The method or an array of methods:
public function setMethods(string|array $methods) : void { foreach ($this->routes as $route) { $route->setMethods($methods); } }