files = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getOrganization(): ?Organization { return $this->organization; } public function setOrganization(?Organization $organization): self { $this->organization = $organization; return $this; } /** * @return Collection */ public function getFiles(): Collection { return $this->files; } public function addFile(File $file): self { if (!$this->files->contains($file)) { $this->files[] = $file; $file->setTemplateSystem($this); } return $this; } public function removeFile(File $file): self { if ($this->files->removeElement($file)) { // set the owning side to null (unless already changed) if ($file->getTemplateSystem() === $this) { $file->setTemplateSystem(null); } } return $this; } }