Skip to content

Commit 9ba1977

Browse files
committed
fix(php): comments mixed up
1 parent 2311370 commit 9ba1977

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

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

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -266,15 +266,12 @@ public function setDefaultHeaders(array $defaultHeaders)
266266
}
267267

268268
/**
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.
272270
*
273-
* @return $this
271+
* @param string $apiKey The new API key to be used
274272
*
275-
* @throws \InvalidArgumentException
273+
* @return void
276274
*/
277-
278275
public function setClientApiKey($apiKey)
279276
{
280277
$this->config['apiKey'] = $apiKey;
@@ -292,6 +289,15 @@ public function setAlgoliaApiKey($apiKey)
292289
return $this->setClientApiKey($apiKey);
293290
}
294291

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+
*/
295301
public function setAlgoliaAgent($algoliaAgent)
296302
{
297303
if (!is_string($algoliaAgent)) {

0 commit comments

Comments
 (0)