public function getSaturation($value = false) { if ($this->saturation === null) { $this->rgb2hsl(); } if ($value && isset($this->saturation->value)) { return $this->saturation->value; } return $this->saturation; }