uuid = Uuid::uuid4(); $this->reports = new ArrayCollection(); $this->tags = new ArrayCollection(); parent::__construct(); } public function getDiscr(): ?string { return $this->discr; } public function setDiscr(string $discr): self { $this->discr = $discr; return $this; } public function getAuthor(): ?Access { return $this->author; } public function setAuthor(?Access $author): self { $this->author = $author; return $this; } /** * @return Collection */ public function getReports(): Collection { return $this->reports; } public function addReport(ReportSms $report): self { if (!$this->reports->contains($report)) { $this->reports[] = $report; $report->setSms($this); } return $this; } public function removeReport(ReportSms $report): self { if ($this->reports->removeElement($report)) { // set the owning side to null (unless already changed) if ($report->getSms() === $this) { $report->setSms(null); } } return $this; } /** * @return Collection */ public function getTags(): Collection { return $this->tags; } public function addTag(Tagg $tag): self { if (!$this->tags->contains($tag)) { $this->tags[] = $tag; } return $this; } public function removeTag(Tagg $tag): self { $this->tags->removeElement($tag); return $this; } }