Skip to content

Commit 2311370

Browse files
committed
copilot incident
1 parent 3e0abf1 commit 2311370

File tree

1 file changed

+84
-0
lines changed

1 file changed

+84
-0
lines changed

clients/algoliasearch-client-php/lib/Configuration/Configuration.php

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,88 @@ public function getAlgoliaApiKey()
193193
return $this->config['apiKey'];
194194
}
195195

196+
public function getHosts()
197+
{
198+
return $this->config['hosts'];
199+
}
200+
201+
public function setHosts($hosts)
202+
{
203+
$this->config['hosts'] = $hosts;
204+
205+
return $this;
206+
}
207+
208+
public function setFullHosts($hosts)
209+
{
210+
$this->config['hasFullHosts'] = true;
211+
212+
return $this->setHosts($hosts);
213+
}
214+
215+
public function getHasFullHosts()
216+
{
217+
return $this->config['hasFullHosts'];
218+
}
219+
220+
public function getReadTimeout()
221+
{
222+
return $this->config['readTimeout'];
223+
}
224+
225+
public function setReadTimeout($readTimeout)
226+
{
227+
$this->config['readTimeout'] = $readTimeout;
228+
229+
return $this;
230+
}
231+
232+
public function getWriteTimeout()
233+
{
234+
return $this->config['writeTimeout'];
235+
}
236+
237+
public function setWriteTimeout($writeTimeout)
238+
{
239+
$this->config['writeTimeout'] = $writeTimeout;
240+
241+
return $this;
242+
}
243+
244+
public function getConnectTimeout()
245+
{
246+
return $this->config['connectTimeout'];
247+
}
248+
249+
public function setConnectTimeout($connectTimeout)
250+
{
251+
$this->config['connectTimeout'] = $connectTimeout;
252+
253+
return $this;
254+
}
255+
256+
public function getDefaultHeaders()
257+
{
258+
return $this->config['defaultHeaders'];
259+
}
260+
261+
public function setDefaultHeaders(array $defaultHeaders)
262+
{
263+
$this->config['defaultHeaders'] = $defaultHeaders;
264+
265+
return $this;
266+
}
267+
268+
/**
269+
* Sets the user agent of the api client.
270+
*
271+
* @param string $algoliaAgent the user agent of the api client
272+
*
273+
* @return $this
274+
*
275+
* @throws \InvalidArgumentException
276+
*/
277+
196278
public function setClientApiKey($apiKey)
197279
{
198280
$this->config['apiKey'] = $apiKey;
@@ -202,6 +284,8 @@ public function setClientApiKey($apiKey)
202284

203285
/**
204286
* @deprecated This method is deprecated. Use setClientApiKey() instead.
287+
*
288+
* @param mixed $apiKey
205289
*/
206290
public function setAlgoliaApiKey($apiKey)
207291
{

0 commit comments

Comments
 (0)