public function getMethods()
    {
        $requestMethod = $this->request->getAccessControlRequestMethod();
        if (in_array('*', $this->methods) && $requestMethod) {
            return $requestMethod;
        }

        return $this->methods;
    }
public function getMethods()
    {
        $requestMethod = $this->request->getAccessControlRequestMethod();
        if (in_array('*', $this->methods) && $requestMethod) {
            return $requestMethod;
        }

        return $this->methods;
    }
public function getMethods ( ) { $ requestMethod = $ this -> request -> getAccessControlRequestMethod ( ) ; if ( in_array ( '*' , $ this -> methods ) && $ requestMethod ) { return $ requestMethod ; } return $ this -> methods ; }
Get allowed methods.

@return string|array

@author Seven Du <shiweidu@outlook.com>
Get allowed methods .