color === Constants::DEFAULT_COLOR) { return null; } return $this->color; } public function hasColor(): bool { return null !== $this->color && $this->color !== Constants::DEFAULT_COLOR; } /** * @param string $color * @return self */ public function setColor(?string $color = null) { $this->color = $color; return $this; } }