public function setParams($parameters, $merge = false)
    {
        if ($merge) {
            $this->params = array_merge($this->params, $parameters);
        } else {
            $this->params = $parameters;
        }

        return $this;
    }
public function setParams($parameters, $merge = false)
    {
        if ($merge) {
            $this->params = array_merge($this->params, $parameters);
        } else {
            $this->params = $parameters;
        }

        return $this;
    }
public function setParams ( $ parameters , $ merge = false ) { if ( $ merge ) { $ this -> params = array_merge ( $ this -> params , $ parameters ) ; } else { $ this -> params = $ parameters ; } return $ this ; }
Define the parameters

@param array $parameters
@param bool $merge Merge or Erase current parameters

@return $this
Define the parameters