public function setColorLightness($value)
    {
        if (!is_array($value) ||
            !array_key_exists(0, $value) ||
            !array_key_exists(1, $value) ||
            !is_numeric($value[0]) ||
            !is_numeric($value[1]) ||
            $value[0] < 0 || $value[0] > 1 ||
            $value[1] < 0 || $value[1] > 1
        ) {
            throw new \InvalidArgumentException(
                "The value passed to setColorLightness was invalid. ".
                "Please check the documentation.");
        }
        
        $this->colorLightness = array((float)$value[0], (float)$value[1]);
        return $this;
    }
public function setColorLightness($value)
    {
        if (!is_array($value) ||
            !array_key_exists(0, $value) ||
            !array_key_exists(1, $value) ||
            !is_numeric($value[0]) ||
            !is_numeric($value[1]) ||
            $value[0] < 0 || $value[0] > 1 ||
            $value[1] < 0 || $value[1] > 1
        ) {
            throw new \InvalidArgumentException(
                "The value passed to setColorLightness was invalid. ".
                "Please check the documentation.");
        }
        
        $this->colorLightness = array((float)$value[0], (float)$value[1]);
        return $this;
    }
public function setColorLightness ( $ value ) { if ( ! is_array ( $ value ) || ! array_key_exists ( 0 , $ value ) || ! array_key_exists ( 1 , $ value ) || ! is_numeric ( $ value [ 0 ] ) || ! is_numeric ( $ value [ 1 ] ) || $ value [ 0 ] < 0 || $ value [ 0 ] > 1 || $ value [ 1 ] < 0 || $ value [ 1 ] > 1 ) { throw new \ InvalidArgumentException ( "The value passed to setColorLightness was invalid. " . "Please check the documentation." ) ; } $ this -> colorLightness = array ( ( float ) $ value [ 0 ] , ( float ) $ value [ 1 ] ) ; return $ this ; }
Sets the value of the ColorLightness property.

@param $value array(float, float)  Lightness range.
@return self
Sets the value of the ColorLightness property .