@@ -193,6 +193,88 @@ public function getAlgoliaApiKey()
193
193
return $ this ->config ['apiKey ' ];
194
194
}
195
195
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
+
196
278
public function setClientApiKey ($ apiKey )
197
279
{
198
280
$ this ->config ['apiKey ' ] = $ apiKey ;
@@ -202,6 +284,8 @@ public function setClientApiKey($apiKey)
202
284
203
285
/**
204
286
* @deprecated This method is deprecated. Use setClientApiKey() instead.
287
+ *
288
+ * @param mixed $apiKey
205
289
*/
206
290
public function setAlgoliaApiKey ($ apiKey )
207
291
{
0 commit comments