protected function setupMethod($method)
    {
        if ('POST' == $method) {
            \curl_setopt($this->ch, CURLOPT_POST, true);
        } elseif (\in_array($method, ['PUT', 'DELETE', 'OPTIONS'])) {
            \curl_setopt($this->ch, CURLOPT_CUSTOMREQUEST, $method);
        }
    }
protected function setupMethod($method)
    {
        if ('POST' == $method) {
            \curl_setopt($this->ch, CURLOPT_POST, true);
        } elseif (\in_array($method, ['PUT', 'DELETE', 'OPTIONS'])) {
            \curl_setopt($this->ch, CURLOPT_CUSTOMREQUEST, $method);
        }
    }
protected function setupMethod ( $ method ) { if ( 'POST' == $ method ) { \ curl_setopt ( $ this -> ch , CURLOPT_POST , true ) ; } elseif ( \ in_array ( $ method , [ 'PUT' , 'DELETE' , 'OPTIONS' ] ) ) { \ curl_setopt ( $ this -> ch , CURLOPT_CUSTOMREQUEST , $ method ) ; } }
Setup method.

@param string $method Request method.
Setup method .