cdfPage = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getNbPage(): ?int { return $this->nbPage; } public function setNbPage(int $nbPage): self { $this->nbPage = $nbPage; return $this; } public function getExport(): ?Exports { return $this->export; } public function setExport(Exports $export): self { $this->export = $export; return $this; } /** * @return Collection|Page[] */ public function getCdfPage(): Collection { return $this->cdfPage; } public function addCdfPage(Page $cdfPage): self { if (!$this->cdfPage->contains($cdfPage)) { $this->cdfPage[] = $cdfPage; $cdfPage->setCdf($this); } return $this; } public function removeCdfPage(Page $cdfPage): self { if ($this->cdfPage->contains($cdfPage)) { $this->cdfPage->removeElement($cdfPage); // set the owning side to null (unless already changed) if ($cdfPage->getCdf() === $this) { $cdfPage->setCdf(null); } } return $this; } }