code: public function setRetries($maxRetries, $retriesDelay)
      {
          $this->maxRetries = (int)$maxRetries;
          $this->retriesDelay = (int)$retriesDelay;
      }
docs: Set the number of times to retry on error and how long between each.
  
  @param int $maxRetries
  @param int $retriesDelay