public function getBlue($value = false) { if ($this->blue === null) { $this->hsl2rgb(); } if ($value && isset($this->blue->value)) { return $this->blue->value; } return max(0, min(255, str_replace(',', '.', round($this->blue)))); }