You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

87 lines
1.5 KiB

  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * Templates
  6. *
  7. * @ORM\Table(name="templates")
  8. * @ORM\Entity
  9. */
  10. class Templates
  11. {
  12. /**
  13. * @var int
  14. *
  15. * @ORM\Column(name="id", type="integer", nullable=false)
  16. * @ORM\Id
  17. * @ORM\GeneratedValue(strategy="IDENTITY")
  18. */
  19. private $id;
  20. /**
  21. * @var string
  22. *
  23. * @ORM\Column(name="name", type="text", length=65535, nullable=false)
  24. */
  25. private $name;
  26. /**
  27. * @var string|null
  28. *
  29. * @ORM\Column(name="description", type="text", length=65535, nullable=true)
  30. */
  31. private $description;
  32. /**
  33. * @var string|null
  34. *
  35. * @ORM\Column(name="template", type="text", length=65535, nullable=true)
  36. */
  37. private $template;
  38. public function getId(): ?int
  39. {
  40. return $this->id;
  41. }
  42. public function getName(): ?string
  43. {
  44. return $this->name;
  45. }
  46. public function setName(string $name): self
  47. {
  48. $this->name = $name;
  49. return $this;
  50. }
  51. public function getDescription(): ?string
  52. {
  53. return $this->description;
  54. }
  55. public function setDescription(?string $description): self
  56. {
  57. $this->description = $description;
  58. return $this;
  59. }
  60. public function getTemplate(): ?string
  61. {
  62. return $this->template;
  63. }
  64. public function setTemplate(?string $template): self
  65. {
  66. $this->template = $template;
  67. return $this;
  68. }
  69. }