src/Entity/BrandTranslation.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use App\Entity\Behaviors\TranslationTrait;
  5. use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
  6. /**
  7. * @ORM\Entity(repositoryClass="App\Repository\TranslationRepository")
  8. * @ORM\HasLifecycleCallbacks()
  9. * @ORM\EntityListeners({"App\Listener\EntityListener"})
  10. */
  11. class BrandTranslation implements TranslationInterface
  12. {
  13. use TranslationTrait;
  14. protected $isEmptyOff = true;
  15. /**
  16. * @ORM\Column(type="string", length=2)
  17. */
  18. protected $locale;
  19. /**
  20. * @ORM\Column(type="text", nullable=true)
  21. */
  22. private $description;
  23. /**
  24. * @ORM\Column(type="string", length=255, nullable=true)
  25. */
  26. private $metaDescription;
  27. /**
  28. * @ORM\Column(type="string", length=255, nullable=true)
  29. */
  30. private $metaKeywords;
  31. /**
  32. * @ORM\Column(type="datetime")
  33. */
  34. private $createts;
  35. /**
  36. * @ORM\ManyToOne(targetEntity="App\Entity\User")
  37. * @ORM\JoinColumn(nullable=false)
  38. */
  39. private $createUser;
  40. /**
  41. * @ORM\Column(type="datetime", nullable=true)
  42. */
  43. private $editts;
  44. /**
  45. * @ORM\ManyToOne(targetEntity="App\Entity\User")
  46. */
  47. private $editUser;
  48. public function getId(): ?int
  49. {
  50. return $this->id;
  51. }
  52. public function getDescription(): ?string
  53. {
  54. return $this->description;
  55. }
  56. public function setDescription(?string $description): self
  57. {
  58. $this->description = $description;
  59. return $this;
  60. }
  61. public function getMetaDescription(): ?string
  62. {
  63. return $this->metaDescription;
  64. }
  65. public function setMetaDescription(?string $metaDescription): self
  66. {
  67. $this->metaDescription = $metaDescription;
  68. return $this;
  69. }
  70. public function getMetaKeywords(): ?string
  71. {
  72. return $this->metaKeywords;
  73. }
  74. public function setMetaKeywords(?string $metaKeywords): self
  75. {
  76. $this->metaKeywords = $metaKeywords;
  77. return $this;
  78. }
  79. public function getCreatets(): ?\DateTimeInterface
  80. {
  81. return $this->createts;
  82. }
  83. public function setCreatets(\DateTimeInterface $createts): self
  84. {
  85. $this->createts = $createts;
  86. return $this;
  87. }
  88. public function getCreateUser(): ?User
  89. {
  90. return $this->createUser;
  91. }
  92. public function setCreateUser(?User $createUser): self
  93. {
  94. $this->createUser = $createUser;
  95. return $this;
  96. }
  97. public function getEditts(): ?\DateTimeInterface
  98. {
  99. return $this->editts;
  100. }
  101. public function setEditts(?\DateTimeInterface $editts): self
  102. {
  103. $this->editts = $editts;
  104. return $this;
  105. }
  106. public function getEditUser(): ?User
  107. {
  108. return $this->editUser;
  109. }
  110. public function setEditUser(?User $editUser): self
  111. {
  112. $this->editUser = $editUser;
  113. return $this;
  114. }
  115. }