public function __construct(array $params = null) { if ($params) { $this->params = array_replace_recursive($this->params, $params); } }