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