*/ #[ORM\OneToMany(targetEntity: 'AppBundle\Entity\Core\File', mappedBy: 'templateSystem', orphanRemoval: true)] #[Groups(['templatesystem'])] private $files; public function __construct() { $this->files = new ArrayCollection(); } /** * Sets id. * * @param int $id * * @return $this */ public function setId($id) { $this->id = $id; return $this; } /** * Gets id. * * @return int */ public function getId() { return $this->id; } /** * Set organization * * @param Organization $organization * * @return TemplateSystem */ public function setOrganization(Organization $organization = null) { $this->organization = $organization; return $this; } /** * Get organization * * @return Organization */ public function getOrganization() { return $this->organization; } /** * Sets subject. * * @param string $subject * * @return $this */ public function setSubject($subject) { $this->subject = $subject; return $this; } /** * Gets subject. * * @return string */ public function getSubject() { return $this->subject; } /** * Sets template. * * @param string $template * * @return $this */ public function setTemplate($template) { $this->template = $template; return $this; } /** * Gets template. * * @return string */ public function getTemplate() { return $this->template; } /** * Set text * * @param string $text * * @return Message */ public function setText($text) { $this->text = $text; return $this; } /** * Get text * * @return string */ public function getText() { return html_entity_decode($this->text); } /** * Adds file. * * @param File $file * * @return $this */ public function addFile(File $file) { $file->setTemplateSystem($this); $this->files->add($file); return $this; } /** * Removes file. * * @param File $file * * @return $this */ public function removeFile(File $file) { $this->files->removeElement($file); return $this; } /** * Gets files. * * @return ArrayCollection */ public function getFiles() { return $this->files; } }