Skip to content

Commit

Permalink
copilot incident
Browse files Browse the repository at this point in the history
  • Loading branch information
millotp committed Sep 6, 2024
1 parent 3e0abf1 commit 2311370
Showing 1 changed file with 84 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -202,6 +284,8 @@ public function setClientApiKey($apiKey)

/**
* @deprecated This method is deprecated. Use setClientApiKey() instead.
*
* @param mixed $apiKey
*/
public function setAlgoliaApiKey($apiKey)
{
Expand Down

0 comments on commit 2311370

Please sign in to comment.