public function methods($methods = null) {
        if ($methods === null) {
            return $this->methods;
        }

        $this->methods = array_map('strtoupper', (array)$methods);
        return $this;
    }
public function methods($methods = null) {
        if ($methods === null) {
            return $this->methods;
        }

        $this->methods = array_map('strtoupper', (array)$methods);
        return $this;
    }
public function methods ( $ methods = null ) { if ( $ methods === null ) { return $ this -> methods ; } $ this -> methods = array_map ( 'strtoupper' , ( array ) $ methods ) ; return $ this ; }
Gets or sets the allowed http methods for this route.

@param array|string|null $methods Set a new set of allowed methods or pass null to get the current methods.
@return Route|array Returns the current methods or `$this` for fluent calls.
Gets or sets the allowed http methods for this route .