public function setParams($params)
    {
        // $param should be a single key => value pair
        if (is_array($params)) {
            foreach ($params as $key => $param) {
                $this->params[$key] = $param;
            }
        }
    }
public function setParams($params)
    {
        // $param should be a single key => value pair
        if (is_array($params)) {
            foreach ($params as $key => $param) {
                $this->params[$key] = $param;
            }
        }
    }
public function setParams ( $ params ) { // $param should be a single key => value pair if ( is_array ( $ params ) ) { foreach ( $ params as $ key => $ param ) { $ this -> params [ $ key ] = $ param ; } } }
Expects an array of one or more key=>value pairs of params to later add
to the URL string

@param array $params
Expects an array of one or more key = > value pairs of params to later add to the URL string