Skip to content

Commit 3e94a0f

Browse files
feat(php): add setMaxRetries (#4448) (generated) [skip ci]
Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 9745e6d commit 3e94a0f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,20 @@ public function getWaitTaskTimeBeforeRetry()
2626
return $this->config['waitTaskTimeBeforeRetry'];
2727
}
2828

29+
/**
30+
* Sets the max retries value used in the Search helpers (e.g. replaceAllobjects).
31+
*
32+
* @param number $maxRetries the user agent of the api client
33+
*
34+
* @return $this
35+
*/
36+
public function setMaxRetries($maxRetries)
37+
{
38+
$this->config['defaultMaxRetries'] = $maxRetries;
39+
40+
return $this;
41+
}
42+
2943
public function getDefaultMaxRetries()
3044
{
3145
return $this->config['defaultMaxRetries'];

0 commit comments

Comments
 (0)