src/Entity/Document/DocumentEmailTemplate.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Document;
  3. use App\Repository\Document\DocumentEmailTemplateRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Uid\Uuid;
  6. /**
  7.  * @ORM\Entity(repositoryClass=DocumentEmailTemplateRepository::class)
  8.  */
  9. class DocumentEmailTemplate
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\Column(type="uuid", unique=true)
  14.      * @ORM\GeneratedValue(strategy="CUSTOM")
  15.      * @ORM\CustomIdGenerator(class="doctrine.uuid_generator")
  16.      */
  17.     private Uuid $id;
  18.     /**
  19.      * @ORM\Column(type="string", length=255)
  20.      */
  21.     private string $template_name;
  22.     /**
  23.      * @ORM\Column(type="string", length=255)
  24.      */
  25.     private ?string $email_template;
  26.     public function getId(): Uuid
  27.     {
  28.         return $this->id;
  29.     }
  30.     /**
  31.      * @return string|null
  32.      */
  33.     public function getTemplateName(): ?string
  34.     {
  35.         return $this->template_name;
  36.     }
  37.     /**
  38.      * @param string $template_name
  39.      * @return $this
  40.      */
  41.     public function setTemplateName(string $template_name): self
  42.     {
  43.         $this->template_name $template_name;
  44.         return $this;
  45.     }
  46.     public function getEmailTemplate(): ?string
  47.     {
  48.         return $this->email_template;
  49.     }
  50.     public function setEmailTemplate(string $email_template): self
  51.     {
  52.         $this->email_template $email_template;
  53.         return $this;
  54.     }
  55. }