@param string $value

@throws DomainException

@return $this
973277
public function setAfterRetryEndPolicy($value)
    {
        if (!in_array(
            $value,
            [self::AFTER_RETRY_END_POLICY_NONE, self::AFTER_RETRY_END_POLICY_CANCEL_SUBSCRIPTION],
            true
        )) {
            throw new DomainException('Invalid after retry end policy');
        }

        return $this->setAttribute('afterRetryEndPolicy', $value);
    }
1279727
public function setAccountType($value)
    {
        $allowedAccountTypes = self::allowedAccountTypes();

        if (!in_array($value, $allowedAccountTypes, true)) {
            throw new DomainException(sprintf(self::MSG_UNEXPECTED_ACCOUNT_TYPE, implode(', ', $allowedAccountTypes)));
        }

        return $this->setAttribute('accountType', $value);
    }
157590
public function addAttempt($value)
    {
        if ($value instanceof PaymentRetryAttempt) {
            $value = $value->jsonSerialize();
        } elseif (!is_array($value)) {
            throw new DomainException('Invalid retry attempt item');
        }

        $attempts = $this->getAttribute('attempts') ?: [];
        $attempts[] = $value;

        return $this->setAttribute('attempts', $attempts);
    }
1043942
public static function url(string $value): self
    {
        return new self(Implementation::uuid5(Implementation::NAMESPACE_URL, $value)->toString());
    }
1122757
public function setReason($value)
    {
        if (!in_array($value, self::reasons(), true)) {
            throw new DomainException(sprintf(self::UNEXPECTED_CATEGORY, implode(', ', self::reasons())));
        }

        return $this->setAttribute('reason', $value);
    }
488002
public function setRenewalPolicy($value)
    {
        if (!in_array($value, self::renewalPolicies(), true)) {
            throw new DomainException(sprintf(self::UNEXPECTED_RENEWAL_POLICY, implode(', ', self::renewalPolicies())));
        }
        $this->setAttribute('renewalPolicy', $value);
    }
1048191
public function setStatus($value)
    {
        if (!in_array($value, [self::STATUS_INACTIVE, self::STATUS_ACTIVE, self::STATUS_DEACTIVATED], true)) {
            throw new DomainException('Payment Card status is not in the list');
        }

        return $this->setAttribute('status', $value);
    }
738121
public function setValue(?string $value) : Setting
    {

        if ($this->data['value'] !== $value) {
            $this->data['value'] = $value;
            $this->setModified('value');
        }

        return $this;
    }
600969
public function setReasonCode($value)
    {
        $allowedReasonCodes = self::allowedReasonCodes();

        if (!in_array($value, $allowedReasonCodes, true)) {
            throw new DomainException(sprintf(self::MSG_UNEXPECTED_REASON_CODE, implode(', ', $allowedReasonCodes)));
        }

        return $this->setAttribute('reasonCode', $value);
    }
813056
public function setCoreMailSmtpSingleTo($value)
    {
        $this->setFieldName('mail_smtp_single_to');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
148868
public function setValue( $value ) {
		$this->value = $this->cleanUpValue( $value );
		$this->input->setValue( $this->value );
		return $this;
	}
847559
public function setText($value)
    {
        $this->text = $value;

        // Auto-convert into html.
        if (is_object($value) && stripos(get_class($value), 'HtmlGenerator\\Html')) {
            $this->text = (string) $value;
        }

        return $this;
    }
994323
public function filter($value, SolrDisMaxQuery $query = null, Facets $facets = null)
    {
        if (null === $query) {
            throw new DomainException('$query must not be null');
        }
        
        if (null === $facets) {
            throw new DomainException('$facets must not be null');
        }
        
        $this->createQuery($value, $query, $facets);
    }
128477
public function setCoreXhtmlUrls($value)
    {
        $this->setFieldName('xhtml_urls');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
1330787
public function setAmountPolicy($value): self
    {
        if (!in_array($value, self::amountPolicies(), true)) {
            throw new DomainException(sprintf(self::UNEXPECTED_POLICY, implode(', ', self::amountPolicies())));
        }

        return $this->setAttribute('amountPolicy', $value);
    }
1135715
public function gt($value) {
        $this->rule = $value;
        $this->check_role = 'gt';
        $result = !is_null($this->value) && $this->value > $value;
        $this->checkResult($result);
        return $this;
    }
1015158
private function setDomainName(?string $domainName): self
    {
        $this->updatePropertyValue(
            DomainNameFieldInterface::PROP_DOMAIN_NAME,
            $domainName
        );

        return $this;
    }