Sets the HTTP methods (e.g. 'POST') this route is restricted to. So an empty array means that any method is allowed.
string[] $methods:
$this
public final function methods(array $methods) : static { $this->route ->setMethods($methods); return $this; }