public function setOptions($options)
    {
        // $param should be a single key => value pair
        if (is_array($options)) {
            foreach ($options as $key => $option) {
                $this->options[$key] = $option;
            }
        }
    }
public function setOptions($options)
    {
        // $param should be a single key => value pair
        if (is_array($options)) {
            foreach ($options as $key => $option) {
                $this->options[$key] = $option;
            }
        }
    }
public function setOptions ( $ options ) { // $param should be a single key => value pair if ( is_array ( $ options ) ) { foreach ( $ options as $ key => $ option ) { $ this -> options [ $ key ] = $ option ; } } }
Expects an array of one or more key=>value pairs of params to later use
as options with curl to alter the way curl is used.

To view a list of potential curl options see: http://php.net/manual/en/function.curl-setopt.php

NOTE: The curl option($key) should not be passed as a string.

@param array $options
Expects an array of one or more key = > value pairs of params to later use as options with curl to alter the way curl is used .