private function methods($methods): void
    {
        if (is_callable($methods)) {
            if ($methods instanceof Closure) {
                $this->options["methods"] = $methods->bindTo($this);
            } else {
                $this->options["methods"] = $methods;
            }
        } else {
            $this->options["methods"] = (array) $methods;
        }
    }
private function methods($methods): void
    {
        if (is_callable($methods)) {
            if ($methods instanceof Closure) {
                $this->options["methods"] = $methods->bindTo($this);
            } else {
                $this->options["methods"] = $methods;
            }
        } else {
            $this->options["methods"] = (array) $methods;
        }
    }
private function methods ( $ methods ) : void { if ( is_callable ( $ methods ) ) { if ( $ methods instanceof Closure ) { $ this -> options [ "methods" ] = $ methods -> bindTo ( $ this ) ; } else { $ this -> options [ "methods" ] = $ methods ; } } else { $ this -> options [ "methods" ] = ( array ) $ methods ; } }
Set request methods to be allowed.
Set request methods to be allowed .