*/ #[ORM\OneToMany(targetEntity: Comment::class, mappedBy: 'task', orphanRemoval: true)] private Collection $comments; #[ORM\Column(type: Types::TEXT, nullable: true)] private ?string $description = null; public function __construct() { $this->comments = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getName(): ?string { return $this->name; } public function setName(string $name): static { $this->name = $name; return $this; } public function getSlug(): ?string { return $this->slug; } public function getUrgent(): ?int { return $this->urgent; } public function setUrgent(?int $urgent): static { $this->urgent = $urgent; return $this; } public function getImportant(): ?int { return $this->important; } public function setImportant(?int $important): static { $this->important = $important; return $this; } public function getStatus(): ?string { return $this->status; } public function setStatus($status, array $context = []): static { $this->status = $status; return $this; } public function getProject(): ?Project { return $this->project; } public function setProject(?Project $project): static { $this->project = $project; return $this; } public function getGeojson(): ?string { return $this->geojson; } public function setGeojson(string $geojson): static { $this->geojson = $geojson; return $this; } public function getOsm(): ?string { return $this->osm; } public function setOsm(string $osm): static { $this->osm = $osm; return $this; } /** * @return Collection */ public function getComments(): Collection { return $this->comments; } public function addComment(Comment $comment): static { if (!$this->comments->contains($comment)) { $this->comments->add($comment); $comment->setTask($this); } return $this; } public function removeComment(Comment $comment): static { if ($this->comments->removeElement($comment)) { // set the owning side to null (unless already changed) if ($comment->getTask() === $this) { $comment->setTask(null); } } return $this; } public function getDescription(): ?string { return $this->description; } public function setDescription(?string $description): static { $this->description = $description; return $this; } }