src/Entity/VIPaccount.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\VIPaccountRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Table(
  7. * uniqueConstraints={@ORM\UniqueConstraint(name="email", columns={"email"})}
  8. * )
  9. * @ORM\Entity(repositoryClass=VIPaccountRepository::class)
  10. * @ORM\EntityListeners({"App\Listener\EntityListener"})
  11. */
  12. class VIPaccount
  13. {
  14. /**
  15. * @ORM\Id
  16. * @ORM\GeneratedValue
  17. * @ORM\Column(type="integer")
  18. */
  19. private $id;
  20. /**
  21. * @ORM\Column(type="string", length=255)
  22. */
  23. private $firstName;
  24. /**
  25. * @ORM\Column(type="string", length=255)
  26. */
  27. private $lastName;
  28. /**
  29. * @ORM\Column(type="string", length=2)
  30. */
  31. private $language = 'cz';
  32. /**
  33. * @ORM\Column(type="string", length=255, nullable=true)
  34. */
  35. private $cardNumber;
  36. /**
  37. * @ORM\Column(type="string", length=255, nullable=true)
  38. */
  39. private $email;
  40. /**
  41. * @ORM\Column(type="datetime", nullable=true)
  42. */
  43. protected $editts;
  44. /**
  45. * @ORM\ManyToOne(targetEntity="App\Entity\User")
  46. */
  47. protected $editUser;
  48. /**
  49. * @ORM\Column(type="datetime")
  50. */
  51. private $createts;
  52. public function getId(): ?int
  53. {
  54. return $this->id;
  55. }
  56. public function getFirstName(): ?string
  57. {
  58. return $this->firstName;
  59. }
  60. public function setFirstName(string $firstName): self
  61. {
  62. $this->firstName = $firstName;
  63. return $this;
  64. }
  65. public function getLastName(): ?string
  66. {
  67. return $this->lastName;
  68. }
  69. public function setLastName(string $lastName): self
  70. {
  71. $this->lastName = $lastName;
  72. return $this;
  73. }
  74. public function getLanguage(): ?string
  75. {
  76. return $this->language;
  77. }
  78. public function setLanguage(string $language): self
  79. {
  80. $this->language = $language;
  81. return $this;
  82. }
  83. public function getCardNumber(): ?string
  84. {
  85. return $this->cardNumber;
  86. }
  87. public function setCardNumber(?string $cardNumber): self
  88. {
  89. $this->cardNumber = $cardNumber;
  90. return $this;
  91. }
  92. public function getEmail(): ?string
  93. {
  94. return $this->email;
  95. }
  96. public function setEmail(string $email): self
  97. {
  98. $this->email = $email;
  99. return $this;
  100. }
  101. /**
  102. * @return mixed
  103. */
  104. public function getEditts()
  105. {
  106. return $this->editts;
  107. }
  108. /**
  109. * @param mixed $editts
  110. */
  111. public function setEditts($editts): void
  112. {
  113. $this->editts = $editts;
  114. }
  115. /**
  116. * @return mixed
  117. */
  118. public function getEditUser()
  119. {
  120. return $this->editUser;
  121. }
  122. /**
  123. * @param mixed $editUser
  124. */
  125. public function setEditUser($editUser): void
  126. {
  127. $this->editUser = $editUser;
  128. }
  129. /**
  130. * @return mixed
  131. */
  132. public function getCreatets()
  133. {
  134. return $this->createts;
  135. }
  136. /**
  137. * @param mixed $createts
  138. */
  139. public function setCreatets($createts): void
  140. {
  141. $this->createts = $createts;
  142. }
  143. }