inputs = 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 getTwigVar(): ?string { return $this->twigVar; } /** * @param string $twigVar [description] * * @return self [description] */ public function setTwigVar(string $twigVar): self { $this->twigVar = $twigVar; return $this; } public function getForElement(): ?bool { return $this->forElement; } public function setForElement(?bool $forElement): self { $this->forElement = $forElement; return $this; } /** * @return Twig [description] */ public function getTwig(): ?Twig { return $this->twig; } /** * @param Twig $twig [description] * * @return self [description] */ public function setTwig(Twig $twig): self { $this->twig = $twig; 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 string [description] */ public function getListValue(): ?string { return $this->listValue; } /** * @param string $listValue [description] * * @return self [description] */ public function setListValue(string $listValue): self { $this->listValue = $listValue; return $this; } /** * @return int [description] */ public function getPosition(): ?string { return $this->position; } /** * @param int $position [description] * * @return self [description] */ public function setPosition(int $position): self { $this->position = $position; 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->setVariable($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->getVariable() === $this) { $input->setVariable(null); } } return $this; } /** * @return VariableProject [description] */ public function getVariableProject(): ?VariableProject { return $this->variableProject; } /** * @param VariableProject $variable [description] * * @return self [description] */ public function setVariableProject(?VariableProject $variableProject): self { $this->variableProject = $variableProject; return $this; } }