src/Specification/ImportSpecification.php
final public function setMaxFetchAttempts($attempts)
    {
        if (!is_int($attempts) || $attempts < 1) {
            throw new \InvalidArgumentException('Fetch attempts must be greater than or equal to 1.');
        }

        $this->maxFetchAttempts = $attempts;

        return $this;
    }
final public function setMaxFetchAttempts($attempts)
    {
        if (!is_int($attempts) || $attempts < 1) {
            throw new \InvalidArgumentException('Fetch attempts must be greater than or equal to 1.');
        }

        $this->maxFetchAttempts = $attempts;

        return $this;
    }
final public function setMaxFetchAttempts ( $ attempts ) { if ( ! is_int ( $ attempts ) || $ attempts < 1 ) { throw new \ InvalidArgumentException ( 'Fetch attempts must be greater than or equal to 1.' ) ; } $ this -> maxFetchAttempts = $ attempts ; return $ this ; }
Sets the maximum number of fetch attempts per connection before failure is considered permanent.

@param int $attempts Maximum fetch attempts.

@return $this
Sets the maximum number of fetch attempts per connection before failure is considered permanent .