childheaders = new ArrayCollection(); $this->tags = new ArrayCollection(); $this->pins = new ArrayCollection(); } /** * @ORM\PrePersist */ public function onPrePersist() { $this->submitdate = new \DateTime('now'); } public function getId(): ?int { return $this->id; } public function getName(): ?string { return $this->name; } public function setName(string $name): self { $this->name = $name; return $this; } public function getSubname(): ?string { return $this->subname; } public function setSubname(?string $subname): self { $this->subname = $subname; return $this; } public function getDescription(): ?string { return $this->description; } public function setDescription(?string $description): self { $this->description = $description; return $this; } public function getSubmitdate(): ?\DateTimeInterface { return $this->submitdate; } public function setSubmitdate(\DateTimeInterface $submitdate): self { $this->submitdate = $submitdate; return $this; } public function getFilename(): ?string { return $this->filename; } public function setFilename(?string $filename): self { $this->filename = $filename; return $this; } public function getFileextention(): ?string { return $this->fileextention; } public function setFileextention(?string $fileextention): self { $this->fileextention = $fileextention; return $this; } public function getFileminetype(): ?string { return $this->fileminetype; } public function setFileminetype(?string $fileminetype): self { $this->fileminetype = $fileminetype; return $this; } public function getUrl(): ?string { return $this->url; } public function setUrl(?string $url): self { $this->url = $url; return $this; } public function getExternalcode(): ?string { return $this->externalcode; } public function setExternalcode(?string $externalcode): self { $this->externalcode = $externalcode; return $this; } public function getExternalid(): ?string { return $this->externalid; } public function setExternalid(?string $externalid): self { $this->externalid = $externalid; return $this; } public function getExternalscript(): ?string { return $this->externalscript; } public function setExternalscript(?string $externalscript): self { $this->externalscript = $externalscript; return $this; } public function getBlog(): ?Blog { return $this->blog; } public function setBlog(?Blog $blog): self { $this->blog = $blog; return $this; } public function getPage(): ?Page { return $this->page; } public function setPage(?Page $page): self { $this->page = $page; return $this; } public function getChildtype(): ?Childtype { return $this->childtype; } public function setChildtype(?Childtype $childtype): self { $this->childtype = $childtype; return $this; } /** * @return Collection */ public function getChildheaders(): Collection { return $this->childheaders; } public function addChildheader(Childheader $childheader): self { if (!$this->childheaders->contains($childheader)) { $this->childheaders->add($childheader); $childheader->setChild($this); } return $this; } public function removeChildheader(Childheader $childheader): self { if ($this->childheaders->removeElement($childheader)) { // set the owning side to null (unless already changed) if ($childheader->getChild() === $this) { $childheader->setChild(null); } } return $this; } /** * @return Collection */ public function getTags(): Collection { return $this->tags; } public function addTag(Tag $tag): self { if (!$this->tags->contains($tag)) { $this->tags->add($tag); } return $this; } public function removeTag(Tag $tag): self { $this->tags->removeElement($tag); return $this; } /** * @return Collection */ public function getPins(): Collection { return $this->pins; } public function addPin(Pin $pin): self { if (!$this->pins->contains($pin)) { $this->pins->add($pin); } return $this; } public function removePin(Pin $pin): self { $this->pins->removeElement($pin); return $this; } public function getRoworder(): ?int { return $this->roworder; } public function setRoworder(int $roworder): self { $this->roworder = $roworder; return $this; } }