public function setColorSaturation($value)
    {
        if (!is_numeric($value) ||
            $value < 0 || $value > 1
        ) {
            throw new \InvalidArgumentException(
                "The color saturation was invalid. ".
                "Only values in the range [0.0, 1.0] are allowed.");
        }
        $this->colorSaturation = (float)$value;
        return $this;
    }
public function setColorSaturation($value)
    {
        if (!is_numeric($value) ||
            $value < 0 || $value > 1
        ) {
            throw new \InvalidArgumentException(
                "The color saturation was invalid. ".
                "Only values in the range [0.0, 1.0] are allowed.");
        }
        $this->colorSaturation = (float)$value;
        return $this;
    }
public function setColorSaturation ( $ value ) { if ( ! is_numeric ( $ value ) || $ value < 0 || $ value > 1 ) { throw new \ InvalidArgumentException ( "The color saturation was invalid. " . "Only values in the range [0.0, 1.0] are allowed." ) ; } $ this -> colorSaturation = ( float ) $ value ; return $ this ; }
Sets the saturation of the colored identicon shapes.

@param $value float  Saturation in the range [0.0, 1.0].
@return self
Sets the saturation of the colored identicon shapes .