filesItems = new ArrayCollection(); } public function setDefault(string $name){ $this->name = $name; } /** * @return Collection|FileItem[] */ public function getFilesItems(): Collection { return $this->filesItems; } public function addFilesItm(FileItem $filesItm): self { if (!$this->filesItems->contains($filesItm)) { $this->filesItems[] = $filesItm; $filesItm->setPhotoBox($this); } return $this; } public function removeFilesItm(FileItem $filesItm): self { if ($this->filesItems->contains($filesItm)) { $this->filesItems->removeElement($filesItm); // set the owning side to null (unless already changed) if ($filesItm->getPhotoBox() === $this) { $filesItm->setPhotoBox(null); } } return $this; } public function addFilesItem(FileItem $filesItem): self { if (!$this->filesItems->contains($filesItem)) { $this->filesItems[] = $filesItem; $filesItem->setPhotoBox($this); } return $this; } public function removeFilesItem(FileItem $filesItem): self { if ($this->filesItems->contains($filesItem)) { $this->filesItems->removeElement($filesItem); // set the owning side to null (unless already changed) if ($filesItem->getPhotoBox() === $this) { $filesItem->setPhotoBox(null); } } return $this; } }