src/Entity/PaymentTranslation.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Event\LifecycleEventArgs;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use App\Entity\Behaviors\TranslationTrait;
  6. use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
  7. /**
  8. * @ORM\Entity(repositoryClass="App\Repository\TranslationRepository")
  9. * @ORM\HasLifecycleCallbacks()
  10. * @ORM\EntityListeners({"App\Listener\EntityListener"})
  11. */
  12. class PaymentTranslation implements TranslationInterface
  13. {
  14. use TranslationTrait;
  15. /**
  16. * @ORM\Column(type="string", length=190)
  17. */
  18. protected $name;
  19. /**
  20. * @ORM\Column(type="string", length=2)
  21. */
  22. protected $locale;
  23. /**
  24. * @ORM\Column(type="datetime")
  25. */
  26. private $createts;
  27. /**
  28. * @ORM\ManyToOne(targetEntity="App\Entity\User")
  29. * @ORM\JoinColumn(nullable=false)
  30. */
  31. private $createUser;
  32. /**
  33. * @ORM\Column(type="datetime", nullable=true)
  34. */
  35. private $editts;
  36. /**
  37. * @ORM\ManyToOne(targetEntity="App\Entity\User")
  38. */
  39. private $editUser;
  40. public function getName(): ?string
  41. {
  42. return $this->name;
  43. }
  44. public function setName(string $name): self
  45. {
  46. $this->name = $name;
  47. return $this;
  48. }
  49. public function getCreatets(): ?\DateTimeInterface
  50. {
  51. return $this->createts;
  52. }
  53. public function setCreatets(\DateTimeInterface $createts): self
  54. {
  55. $this->createts = $createts;
  56. return $this;
  57. }
  58. public function getCreateUser(): ?User
  59. {
  60. return $this->createUser;
  61. }
  62. public function setCreateUser(?User $createUser): self
  63. {
  64. $this->createUser = $createUser;
  65. return $this;
  66. }
  67. public function getEditts(): ?\DateTimeInterface
  68. {
  69. return $this->editts;
  70. }
  71. public function setEditts(?\DateTimeInterface $editts): self
  72. {
  73. $this->editts = $editts;
  74. return $this;
  75. }
  76. public function getEditUser(): ?User
  77. {
  78. return $this->editUser;
  79. }
  80. public function setEditUser(?User $editUser): self
  81. {
  82. $this->editUser = $editUser;
  83. return $this;
  84. }
  85. }