src/Request.php
private function setData(array $data)
    {
        if ( ! empty($data))
        {
            $this->setOption(CURLOPT_POSTFIELDS, $this->optionParser->parseData($data));
        }
        else
        {
            $this->unsetOption(CURLOPT_POSTFIELDS);
        }
    }
private function setData(array $data)
    {
        if ( ! empty($data))
        {
            $this->setOption(CURLOPT_POSTFIELDS, $this->optionParser->parseData($data));
        }
        else
        {
            $this->unsetOption(CURLOPT_POSTFIELDS);
        }
    }
private function setData ( array $ data ) { if ( ! empty ( $ data ) ) { $ this -> setOption ( CURLOPT_POSTFIELDS , $ this -> optionParser -> parseData ( $ data ) ) ; } else { $ this -> unsetOption ( CURLOPT_POSTFIELDS ) ; } }
Set request post fields

@param array $data

@return void
Set request post fields