Sets the condition value.

@param string $value
@return $this
423761
protected function setValue($value)
    {
        if (is_string($value)) {
            $this->value = $value;
        } else {
            throw new \InvalidArgumentException(
                "Invalid type '" . gettype($value). "' for argument 'value' given."
            );
        }

        return $this;
    }
553207
public function setValue($value) {
		if(is_string($value) && $this->getOption('trim'))
			$value = trim($value);

		$this->value = $value;
	}
947418
public function setValue($value)
    {
        if ($this->acceptsArguments()) {
            $this->value = $value;
        } else {
            $this->value = (boolean) $value;
        }
    }
439861
public function eq($value) {
        $this->rule = $value;
        $this->check_role = 'eq';
        $result = !is_null($this->value) && $this->value == $value;
        $this->checkResult($result);
        return $this;
    }
1191451
public function setValue($value)
    {
        if ($value == $this->getAttribute('value')) {
            $this->check();
        } else {
            $this->uncheck();
        }
        return $this;
    }
837162
public function setValue($value)
    {
        if (\is_array($value)) {
            $this->setValueArray($value);
            $value = implode(', ', $value);
        }

        $this->setAttribute('value', $value);

        return $this;
    }
148868
public function setValue( $value ) {
		$this->value = $this->cleanUpValue( $value );
		$this->input->setValue( $this->value );
		return $this;
	}
762042
public function set_content($value) {
        $this->content = clean_text($value);
        $this->dirty = true;

        return $this;
    }
601745
public function setValue($value)
	{
		if ( $value == $this->getValue() ) {
			return;
		}

		$this->_values['value'] = (string) $value;

		$this->setModified();
	}
1187802
public function setValue($value) {
        if (is_bool($value)) {
            $value = $value ? 'true' : 'false';
        }
        $this->value = $value;

        return $this;
    }
1337774
public function setAddition($value)
    {
        if (!isset($this->data->amount->subtotals)) {
            $this->data->amount->subtotals = new stdClass();
        }
        $this->data->amount->subtotals->addition = (float) $value;

        return $this;
    }
1338788
public function setValue($value) {
		if(!in_array($value, self::VALID_VALUES)) {
			throw new InvalidArgumentException('Value is not valid.');
		}

		$this->value = $value;

		return $this;
	}
331351
public function setHidden(?int $value) : Setting
    {

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

        return $this;
    }
91630
public function setParams($value)
    {
        if (!is_array($value)) {
            return $this;
        }

        foreach ($value as $identifier => $param) {
            $this->setParam($identifier, $param);
        }

        return $this;
    }
189678
public function setIsApproved($value)
    {
        if ($value === null || $value === '') {
            $this->approved = null;
        } else {
            $this->approved = (bool) $value;
        }

        return $this;
    }
896529
public function setValue($value)
    {
        switch (true) {
            case ($this instanceof Select):
                if (! is_array($value)) {
                    $value = (array) $value;
                }

                $this->value = $value;
                break;
            case ($this instanceof Textarea):
                $this->inner = $value;
                break;
            default:
                $this->attribute['value'] = $value;
                break;
        }

        return $this;
    }
325866
public function setScope(string $value) : Setting
    {

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

        return $this;
    }