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;
    }