File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed
clients/algoliasearch-client-php/lib/Configuration Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -266,15 +266,12 @@ public function setDefaultHeaders(array $defaultHeaders)
266
266
}
267
267
268
268
/**
269
- * Sets the user agent of the api client.
270
- *
271
- * @param string $algoliaAgent the user agent of the api client
269
+ * Switch the API key used to authenticate requessts.
272
270
*
273
- * @return $this
271
+ * @param string $apiKey The new API key to be used
274
272
*
275
- * @throws \InvalidArgumentException
273
+ * @return void
276
274
*/
277
-
278
275
public function setClientApiKey ($ apiKey )
279
276
{
280
277
$ this ->config ['apiKey ' ] = $ apiKey ;
@@ -292,6 +289,15 @@ public function setAlgoliaApiKey($apiKey)
292
289
return $ this ->setClientApiKey ($ apiKey );
293
290
}
294
291
292
+ /**
293
+ * Sets the user agent of the api client.
294
+ *
295
+ * @param string $algoliaAgent the user agent of the api client
296
+ *
297
+ * @return $this
298
+ *
299
+ * @throws \InvalidArgumentException
300
+ */
295
301
public function setAlgoliaAgent ($ algoliaAgent )
296
302
{
297
303
if (!is_string ($ algoliaAgent )) {
You can’t perform that action at this time.
0 commit comments