public function setColor($color) { if (null === $color) { return $this; } $this->color = $this->convertColor($color); return $this; }