templates = new ArrayCollection(); $this->variables = new ArrayCollection(); } /** * @return int [description] */ 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 int [description] */ public function getExportType(): ?int { return $this->exportType; } /** * @param int $exportType [description] * * @return self [description] */ public function setExportType(?int $exportType): self { $this->exportType = $exportType; return $this; } /** * @return string [description] */ public function getContent(): ?string { return $this->content; } /** * @param string $content [description] * * @return self [description] */ public function setContent(string $content): self { $this->content = $content; return $this; } /** * @return Collection|Template[] */ public function getTemplates(): Collection { return $this->templates; } /** * @param Template $template [description] * * @return self [description] */ public function addTemplate(Template $template): self { if (!$this->templates->contains($template)) { $this->templates[] = $template; $template->setTwig($this); } return $this; } /** * @param Template $template [description] * * @return self [description] */ public function removeTemplate(Template $template): self { if ($this->templates->contains($template)) { $this->templates->removeElement($template); // set the owning side to null (unless already changed) if ($template->getTwig() === $this) { $template->setTwig(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->setTwig($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->getTwig() === $this) { $variable->setTwig(null); } } return $this; } }