public function setCurlOpt($opt, $val)
    {
        if (!is_int($opt))
        {
            throw new \InvalidArgumentException(sprintf(
                '%s::setCurlOpt - Argument 1 expected to be integer, %s seen.',
                get_class($this),
                gettype($opt)
            ));
        }

        $this->curlOpts[$opt] = $val;
        return $this;
    }
public function setCurlOpt($opt, $val)
    {
        if (!is_int($opt))
        {
            throw new \InvalidArgumentException(sprintf(
                '%s::setCurlOpt - Argument 1 expected to be integer, %s seen.',
                get_class($this),
                gettype($opt)
            ));
        }

        $this->curlOpts[$opt] = $val;
        return $this;
    }
public function setCurlOpt ( $ opt , $ val ) { if ( ! is_int ( $ opt ) ) { throw new \ InvalidArgumentException ( sprintf ( '%s::setCurlOpt - Argument 1 expected to be integer, %s seen.' , get_class ( $ this ) , gettype ( $ opt ) ) ) ; } $ this -> curlOpts [ $ opt ] = $ val ; return $ this ; }
Set CURL option

@link http://www.php.net/manual/en/function.curl-setopt.php

@param int  $opt curl option
@param mixed  $val curl option value
@throws \InvalidArgumentException
@return $this
Set CURL option