Sets the saturation of the originally grayscale identicon shapes.

@param $value float  Saturation in the range [0.0, 1.0].
@return self
968193
public function setGrayscaleSaturation($value)
    {
        if (!is_numeric($value) ||
            $value < 0 || $value > 1
        ) {
            throw new \InvalidArgumentException(
                "The grayscale saturation was invalid. ".
                "Only values in the range [0.0, 1.0] are allowed.");
        }
        $this->grayscaleSaturation = (float)$value;
        return $this;
    }
472267
public function setDefault($value)
    {
        if (!is_float($value) || $value < -180 || $value > 180) {
            throw new InvalidArgumentException(
                "invalid value provided for 'value'; ".
                "expecting a float that is between -180 and 180"
            );
        }
        $this->defaultValue = $value;
        return $this;
    }
148868
public function setValue( $value ) {
		$this->value = $this->cleanUpValue( $value );
		$this->input->setValue( $this->value );
		return $this;
	}
158671
public function setInstances(int $value) : SearchIndex
    {

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

        return $this;
    }
1018983
public function setValue($value = null)
    {

		if(isset($value)) {

			//ENT_QUOTES not set

			$this->value = array_map('htmlspecialchars', (array) $value);
		}

		foreach($this->options as $o) {

			$v = $this->getValue();

			if(is_array($v) && in_array($o->getValue(), $v)) {
				$o->select();
			}
			else {
				$o->unselect();
			}
		}
		
		return $this;

	}
1099112
public function setPadding($value)
    {
        if (!is_numeric($value) || $value < 0 || $value > 0.4) {
            throw new \InvalidArgumentException(
                "Padding '$value' out of range. ".
                "Values in the range [0.0, 0.4] are allowed.");
        }
        $this->padding = (float)$value;
        return $this;
    }
1344170
public function setValue($value)
    {
        if (is_null($value)) {
            return $this->value = $value;
        }

        return $this->value = round($value, $this->scale);
    }
1292236
public function setSignature($value = null)
    {
        if ($value !== null && ! $value instanceof \Protobuf\Stream) {
            $value = \Protobuf\Stream::wrap($value);
        }

        $this->Signature = $value;
    }
941197
public static function setCaptchaTextColor($value = '#ffffff')
    {
        $arr = null;
        if (!is_array($value)) {
            $arr = ColorMatrix::hex2Rgb($value);
        }
        if ($arr) {
            self::$textColor = $arr;
        }
    }
821277
public function setValue($value)
    {
        NumericValidator::validate($value, "Value");
        $value = Formatter::formatToPrice($value, $this->getCurrency());
        $this->value = $value;
        return $this;
    }
724600
public function setConstellations($value)
    {
        if ($value !== null && !in_array($value, [
                self::CONSTELLATION_ARIES,
                self::CONSTELLATION_TAURUS,
                self::CONSTELLATION_GEMINI,
                self::CONSTELLATION_CANCER,
                self::CONSTELLATION_LEO,
                self::CONSTELLATION_VIRGO,
                self::CONSTELLATION_LIBRA,
                self::CONSTELLATION_SCORPIUS,
                self::CONSTELLATION_SAGITTARIUS,
                self::CONSTELLATION_CAPRICONUS,
                self::CONSTELLATION_AQUARIUS,
                self::CONSTELLATION_PISCES,
            ])
        ) {
            throw new DomainError('Invalid constellations');
        }
        $this->parameters['constellations'] = $value;
        return $this;
    }
478870
public function setValue($value)
    {
        $this->_value = $value;
        $this->getInput()->setValue($value);
        return $this;
    }
1269595
public function setLatitude($value)
    {
        if (is_float($value) || is_int($value) || (is_string($value) && is_numeric($value))) {
            $this->latitude = (float) $value;
        } else {
            $this->latitude = null;
        }

        return $this;
    }
1203661
public function setValue($value)
	{
		// set default
		if( $value === "" )
		{
			$value = $this->value;
		}

		if( $this->type === "boolean" )
		{
			$value = is_bool($value) ? $value : in_array($value, ['y', 'yes', 'on', '1']);
		}
		else if( $this->type === "number" )
		{
			if( ! is_numeric($value) )
			{
				throw new \InvalidArgumentException($this->getTheTitle() . " must be a number");
			}
			$value = (float) $value;
			if( $this->required && $value === 0 )
			{
				throw new \InvalidArgumentException($this->getTheTitle() . " is required");
			}
		}
		else if( $this->type === "enum" )
		{
			if( ! in_array($value, $this->enum, true) )
			{
				$variant = "'" . implode("' or '", $this->enum) . "'";
				throw new \InvalidArgumentException($this->getTheTitle() . " must be equal " . $variant);
			}
		}
		else
		{
			$value = trim($value);
			if( $this->required && ! strlen($value) )
			{
				throw new \InvalidArgumentException($this->getTheTitle() . " is required");
			}
		}

		if( $this->type_of )
		{
			$value = call_user_func($this->type_of, $value);
			if( $value === false && $this->type !== "boolean" )
			{
				throw new \InvalidArgumentException($this->getTheTitle() . " value is invalid");
			}
		}

		$this->value = $value;
		return $this;
	}
1364995
public function setPadded($value=NULL) {
		if (isset($value))
			$this->addToPropertyCtrl("class", $value, array ("vertically","horizontally" ));
		return $this->addToProperty("class", "padded");
	}
750654
public static function setCaptchaBackground($value = '#ffffff')
    {
        $arr = ColorMatrix::hex2Rgb($value);
        if ($arr) {
            self::$backgroundColor = $arr;
        }
    }
1242029
public function setCoreMgrTreeIconContext($value)
    {
        $this->setFieldName('mgr_tree_icon_context');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }