public function setParams(array $params) { foreach ($params as $key => $value) { $this->params[$key] = $value; } $this->buildMessage(); return $this; }