public function setParameters(array $params) { $i = 0; foreach ($params as $str) { $this->params[$i] = (string) $str; ++$i; } }