id = new Id($id); } public function setTitle(string $title): self { $this->title = new Title($title); return $this; } public function setDescription(?string $description): self { $this->description = new Description($description); return $this; } public function setStatus(int $status): self { $this->status = Status::from($status); return $this; } public function setTemplate(?string $template): self { $this->template = new Template($template); return $this; } public function setImage(?string $image): self { $this->image = new Image($image); return $this; } public function setColor(?string $color): self { $this->color = new Color($color); return $this; } public function setCategoryId(?string $categoryId): self { if ($categoryId) { $this->categoryId = new Id($categoryId); return $this; } $this->removeCategory = true; return $this; } }