public function setModuleSettings($newSettings) { $this->moduleSettings = new BaseObject(); $this->moduleSettings->mergeFrom($newSettings); return $this; }