Jyxo\Rpc\Client::getCurlOption PHP Method

getCurlOption() public method

Returns certain curl_setopt parameter or whole array of parameters if no parameter name is provided.
public getCurlOption ( string $key = '' ) : mixed
$key string Parameter name
return mixed
    public function getCurlOption(string $key = '')
    {
        if (isset($this->curlOptions[$key])) {
            return $this->curlOptions[$key];
        }
        return $this->curlOptions;
    }