/** * @param string $tenantName * @param $tenantConfigXml * @param null $totalConfigXml */ public function __construct($tenantName, $tenantConfigXml, $totalConfigXml = null) { parent::__construct($tenantName, $tenantConfigXml, $totalConfigXml); if ($tenantConfigXml->generalSettings) { $this->setGeneralSettings($tenantConfigXml->generalSettings->toArray()); } $this->indexSettings = json_decode($tenantConfigXml->indexSettingsJson, true); $this->elasticSearchClientParams = json_decode($tenantConfigXml->elasticSearchClientParamsJson, true); }
/** * @param string $tenantName * @param $tenantConfigXml * @param null $totalConfigXml */ public function __construct($tenantName, $tenantConfigXml, $totalConfigXml = null) { parent::__construct($tenantName, $tenantConfigXml, $totalConfigXml); $this->clientConfig = $tenantConfigXml->clientConfig->toArray(); }