public function method($method)
    {
        $this->headers = array_merge($this->headers, array('X-HTTP-Method-Override: ' . $method));
        $this->setOption(CURLOPT_CUSTOMREQUEST, $method);
        $this->setOption(CURLOPT_HTTPHEADER, $this->headers);
    }
public function method($method)
    {
        $this->headers = array_merge($this->headers, array('X-HTTP-Method-Override: ' . $method));
        $this->setOption(CURLOPT_CUSTOMREQUEST, $method);
        $this->setOption(CURLOPT_HTTPHEADER, $this->headers);
    }
public function method ( $ method ) { $ this -> headers = array_merge ( $ this -> headers , array ( 'X-HTTP-Method-Override: ' . $ method ) ) ; $ this -> setOption ( CURLOPT_CUSTOMREQUEST , $ method ) ; $ this -> setOption ( CURLOPT_HTTPHEADER , $ this -> headers ) ; }
Set cURL method

@param string $method
@return void
Set cURL method