Guest User

Untitled

a guest
May 26th, 2018
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. <?php
  2.  
  3. namespace App\Entity;
  4.  
  5. use Doctrine\ORM\Mapping as ORM;
  6.  
  7. /**
  8. * @ORM\Entity(repositoryClass="App\Repository\UserRepository")
  9. */
  10. class User
  11. {
  12. /**
  13. * @ORM\Id()
  14. * @ORM\GeneratedValue()
  15. * @ORM\Column(type="integer")
  16. */
  17. private $id;
  18.  
  19. /**
  20. * @ORM\Column(type="string", length=64)
  21. */
  22. private $username;
  23.  
  24. /**
  25. * @ORM\Column(type="string", length=64)
  26. */
  27. private $password;
  28.  
  29. /**
  30. * @ORM\Column(type="string", length=255)
  31. */
  32. private $email;
  33.  
  34. /**
  35. * @ORM\Column(type="boolean")
  36. */
  37. private $isActive;
  38.  
  39. public function getId()
  40. {
  41. return $this->id;
  42. }
  43.  
  44. public function getUsername()
  45. {
  46. return $this->username;
  47. }
  48.  
  49. public function setUsername(string $username)
  50. {
  51. $this->username = $username;
  52.  
  53. return $this;
  54. }
  55.  
  56. public function getPassword()
  57. {
  58. return $this->password;
  59. }
  60.  
  61. public function setPassword(string $password)
  62. {
  63. $this->password = $password;
  64.  
  65. return $this;
  66. }
  67.  
  68. public function getEmail()
  69. {
  70. return $this->email;
  71. }
  72.  
  73. public function setEmail(string $email)
  74. {
  75. $this->email = $email;
  76.  
  77. return $this;
  78. }
  79.  
  80. public function getIsActive()
  81. {
  82. return $this->isActive;
  83. }
  84.  
  85. public function setIsActive(bool $isActive)
  86. {
  87. $this->isActive = $isActive;
  88.  
  89. return $this;
  90. }
  91. }
Add Comment
Please, Sign In to add comment