src/Route.php
public function methods($methods = null)
    {
        if (!func_num_args()) {
            return array_keys($this->_methods);
        }
        $methods = $methods ? (array) $methods : [];
        $methods = array_map('strtoupper', $methods);
        $this->_methods = array_fill_keys($methods, true);
        return $this;
    }
public function methods($methods = null)
    {
        if (!func_num_args()) {
            return array_keys($this->_methods);
        }
        $methods = $methods ? (array) $methods : [];
        $methods = array_map('strtoupper', $methods);
        $this->_methods = array_fill_keys($methods, true);
        return $this;
    }
Gets/sets the allowed methods.

@param  string|array $allowedMethods The allowed methods set or none to get the setted one.
@return array|self                   The allowed methods on get or `$this` on set.