inputs = new ArrayCollection(); $this->variables = new ArrayCollection(); $this->values = new ArrayCollection(); $this->layouts = new ArrayCollection(); } public function getId(): ?int { return $this->id; } /** * @return string [description] */ public function getName(): ?string { return $this->name; } /** * @param string $name [description] * * @return self [description] */ public function setName(string $name): self { $this->name = $name; return $this; } /** * @return string [description] */ public function getCategorie(): ?string { return $this->categorie; } /** * @param string $categorie [description] * * @return self [description] */ public function setCategorie(string $categorie): self { $this->categorie = $categorie; return $this; } /** * @return string [description] */ public function getFieldType(): ?string { return $this->fieldType; } /** * @param string $fieldType [description] * * @return self [description] */ public function setFieldType(string $fieldType): self { $this->fieldType = $fieldType; return $this; } /** * @return Collection|Input[] */ public function getInputs(): Collection { return $this->inputs; } /** * @param Input $input [description] * * @return self [description] */ public function addInput(Input $input): self { if (!$this->inputs->contains($input)) { $this->inputs[] = $input; $input->setVariableProject($this); } return $this; } /** * @param Input $input [description] * * @return self [description] */ public function removeInput(Input $input): self { if ($this->inputs->contains($input)) { $this->inputs->removeElement($input); // set the owning side to null (unless already changed) if ($input->getVariableProject() === $this) { $input->setVariableProject(null); } } return $this; } /** * @return Collection|Variable[] */ public function getVariables(): Collection { return $this->variables; } /** * @param Variable $variable [description] * * @return self [description] */ public function addVariable(Variable $variable): self { if (!$this->variables->contains($variable)) { $this->variables[] = $variable; $variable->setVariableProject($this); } return $this; } /** * @param Variable $variable [description] * * @return self [description] */ public function removeVariable(Variable $variable): self { if ($this->variables->contains($variable)) { $this->variables->removeElement($variable); // set the owning side to null (unless already changed) if ($variable->getVariableProject() === $this) { $variable->setVariableProject(null); } } return $this; } /** * @return Collection|ElementMedia[] */ public function getExportMedias(): Collection { return $this->exportMedias; } /** * @param ElementMedia $exportMedias [description] * * @return self [description] */ public function addExportMedia(ElementMedia $exportMedia): self { if (!$this->exportMedias->contains($exportMedia)) { $this->exportMedias[] = $exportMedia; $exportMedia->setVariableProject($this); } return $this; } /** * @param ElementMedia $exportMedias [description] * * @return self [description] */ public function removeExportMedia(ElementMedia $exportMedia): self { if ($this->exportMedias->contains($exportMedia)) { $this->exportMedias->removeElement($exportMedia); // set the owning side to null (unless already changed) if ($exportMedia->getVariableProject() === $this) { $exportMedia->setVariableProject(null); } } return $this; } /** * @return Collection|ExportTemplateOption[] */ public function getExportOptions(): Collection { return $this->exportOptions; } /** * @param ExportTemplateOption $exportOption [description] * * @return self [description] */ public function addExportOption(ExportTemplateOption $exportOption): self { if (!$this->exportOptions->contains($exportOption)) { $this->exportOptions[] = $exportOption; $exportOption->setVariableProject($this); } return $this; } /** * @param ExportTemplateOption $exportOption [description] * * @return self [description] */ public function removeExportOption(ExportTemplateOption $exportOption): self { if ($this->exportOptions->contains($exportOption)) { $this->exportOptions->removeElement($exportOption); // set the owning side to null (unless already changed) if ($exportOption->getVariableProject() === $this) { $exportOption->setVariableProject(null); } } return $this; } public function getValues(): Collection { return $this->values; } }