public function setCurlNumRetries($retries)
    {
        if (!is_numeric($retries) || $retries < 0) {
            throw new \InvalidArgumentException('Retries value must be numeric and a non-negative number.');
        }

        $this->curlNumRetries = $retries;
        return $this;
    }
public function setCurlNumRetries($retries)
    {
        if (!is_numeric($retries) || $retries < 0) {
            throw new \InvalidArgumentException('Retries value must be numeric and a non-negative number.');
        }

        $this->curlNumRetries = $retries;
        return $this;
    }
public function setCurlNumRetries ( $ retries ) { if ( ! is_numeric ( $ retries ) || $ retries < 0 ) { throw new \ InvalidArgumentException ( 'Retries value must be numeric and a non-negative number.' ) ; } $ this -> curlNumRetries = $ retries ; return $ this ; }
Sets the retry value

@param integer  Number of retries before it gives up

@return Configuration
Sets the retry value