public function setPostData($postData)
    {
        if (is_null($postData)) {
            unset($this->_options[CURLOPT_POST]);
            unset($this->_options[CURLOPT_POSTFIELDS]);
        } else {
            $this->_options[CURLOPT_POST] = true;
            $this->_options[CURLOPT_POSTFIELDS] = $postData;
        }
        return $this;
    }
public function setPostData($postData)
    {
        if (is_null($postData)) {
            unset($this->_options[CURLOPT_POST]);
            unset($this->_options[CURLOPT_POSTFIELDS]);
        } else {
            $this->_options[CURLOPT_POST] = true;
            $this->_options[CURLOPT_POSTFIELDS] = $postData;
        }
        return $this;
    }
public function setPostData ( $ postData ) { if ( is_null ( $ postData ) ) { unset ( $ this -> _options [ CURLOPT_POST ] ) ; unset ( $ this -> _options [ CURLOPT_POSTFIELDS ] ) ; } else { $ this -> _options [ CURLOPT_POST ] = true ; $ this -> _options [ CURLOPT_POSTFIELDS ] = $ postData ; } return $ this ; }
Adds post data to options
@param mixed $postData
@return $this;
Adds post data to options