templates = new ArrayCollection(); $this->layouts = new ArrayCollection(); $this->elementTypeExports = new ArrayCollection(); //todo } /** * @return int|null */ public function getId(): ?int { return $this->id; } /** * @return int|null */ public function getVersionPIM(): ?int { return $this->versionPIM; } /** * @param int $versionPIM * * @return self */ public function setVersionPIM(int $versionPIM): self { $this->versionPIM = $versionPIM; return $this; } /** * @return int|null */ public function getElementTypePIM(): ?int { return $this->elementTypePIM; } /** * @param int $elementTypePIM * * @return self */ public function setElementTypePIM(int $elementTypePIM): self { $this->elementTypePIM = $elementTypePIM; return $this; } /** * @return array|null */ public function getElementsPIM(): ?array { return $this->elementsPIM; } /** * @param array $elementsPIM * * @return self */ public function setElementsPIM(array $elementsPIM): self { $this->elementsPIM = $elementsPIM; return $this; } /** * @return array|null */ public function getElementTypeFieldsPIM(): ?array { return $this->elementTypeFieldsPIM; } /** * @param array $elementTypeFieldsPIM * * @return self */ public function setElementTypeFieldsPIM(array $elementTypeFieldsPIM): self { $this->elementTypeFieldsPIM = $elementTypeFieldsPIM; return $this; } /** * @return Project|null */ public function getProject(): ?Project { return $this->project; } /** * @param Project|null $project * * @return self */ public function setProject(?Project $project): self { $this->project = $project; return $this; } /** * @return Collection|ElementTypesTemplates[] */ public function getTemplates(): Collection { return $this->templates; } /** * @param ElementTypesTemplates $template * * @return self */ public function addTemplate(ElementTypesTemplates $template): self { if (!$this->templates->contains($template)) { $this->templates[] = $template; $template->setElementType($this); } return $this; } /** * @param ElementTypesTemplates $template * * @return self */ public function removeTemplate(ElementTypesTemplates $template): self { if ($this->templates->contains($template)) { $this->templates->removeElement($template); // set the owning side to null (unless already changed) if ($template->getElementType() === $this) { $template->setElementType(null); } } return $this; } /** * @return Collection|Layout[] */ public function getLayouts(): Collection { return $this->layouts; } /** * @param Layout $layout * * @return self */ public function addLayout(Layout $layout): self { if (!$this->layouts->contains($layout)) { $this->layouts[] = $layout; $layout->setElementType($this); } return $this; } /** * @param Layout $layout * * @return self */ public function removeLayout(Layout $layout): self { if ($this->layouts->contains($layout)) { $this->layouts->removeElement($layout); // set the owning side to null (unless already changed) if ($layout->getElementType() === $this) { $layout->setElementType(null); } } return $this; } /** * @return string */ public function getTagsPIM(): ?string { return $this->tagsPIM; } /** * @param string $tagsPIM * * @return self */ public function setTagsPIM(?string $tagsPIM): self { $this->tagsPIM = $tagsPIM; return $this; } }