diff --git a/clients/algoliasearch-client-php/lib/Configuration/Configuration.php b/clients/algoliasearch-client-php/lib/Configuration/Configuration.php index 60ec4838bc..ac8698ace1 100644 --- a/clients/algoliasearch-client-php/lib/Configuration/Configuration.php +++ b/clients/algoliasearch-client-php/lib/Configuration/Configuration.php @@ -193,6 +193,88 @@ public function getAlgoliaApiKey() return $this->config['apiKey']; } + public function getHosts() + { + return $this->config['hosts']; + } + + public function setHosts($hosts) + { + $this->config['hosts'] = $hosts; + + return $this; + } + + public function setFullHosts($hosts) + { + $this->config['hasFullHosts'] = true; + + return $this->setHosts($hosts); + } + + public function getHasFullHosts() + { + return $this->config['hasFullHosts']; + } + + public function getReadTimeout() + { + return $this->config['readTimeout']; + } + + public function setReadTimeout($readTimeout) + { + $this->config['readTimeout'] = $readTimeout; + + return $this; + } + + public function getWriteTimeout() + { + return $this->config['writeTimeout']; + } + + public function setWriteTimeout($writeTimeout) + { + $this->config['writeTimeout'] = $writeTimeout; + + return $this; + } + + public function getConnectTimeout() + { + return $this->config['connectTimeout']; + } + + public function setConnectTimeout($connectTimeout) + { + $this->config['connectTimeout'] = $connectTimeout; + + return $this; + } + + public function getDefaultHeaders() + { + return $this->config['defaultHeaders']; + } + + public function setDefaultHeaders(array $defaultHeaders) + { + $this->config['defaultHeaders'] = $defaultHeaders; + + return $this; + } + + /** + * Sets the user agent of the api client. + * + * @param string $algoliaAgent the user agent of the api client + * + * @return $this + * + * @throws \InvalidArgumentException + */ + public function setClientApiKey($apiKey) { $this->config['apiKey'] = $apiKey; @@ -202,6 +284,8 @@ public function setClientApiKey($apiKey) /** * @deprecated This method is deprecated. Use setClientApiKey() instead. + * + * @param mixed $apiKey */ public function setAlgoliaApiKey($apiKey) {