Guest User

Untitled

a guest
Apr 21st, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. <?php
  2.  
  3. namespace Acme\UserBundle\Entity;
  4.  
  5. use FOS\UserBundle\Entity\User as BaseUser;
  6. use Doctrine\ORM\Mapping as ORM;
  7.  
  8. /**
  9. * @ORM\Entity
  10. * @ORM\Table(name="acme_users")
  11. */
  12. class User extends BaseUser
  13. {
  14. /**
  15. * @ORM\Id
  16. * @ORM\Column(type="integer")
  17. * @ORM\GeneratedValue(strategy="AUTO")
  18. */
  19. protected $id;
  20.  
  21. protected $username;
  22.  
  23. protected $password;
  24.  
  25. /**
  26. * Constructs a new instance of User
  27. */
  28.  
  29. public function __construct()
  30. {
  31. parent::__construct();
  32. }
  33.  
  34. /**
  35. * Get id
  36. *
  37. * @return integer
  38. */
  39. public function getId()
  40. {
  41. return $this->id;
  42. }
  43.  
  44. /**
  45. * Set username
  46. *
  47. * @param string $value The username.
  48. */
  49.  
  50. public function setUsername($value)
  51. {
  52. $this->username = $value;
  53. }
  54.  
  55. /**
  56. * Get username
  57. *
  58. * @return string The username.
  59. */
  60.  
  61. public function getUsername()
  62. {
  63. return $this->username;
  64. }
  65.  
  66. /**
  67. * Set password
  68. *
  69. * @param string $value The password.
  70. */
  71.  
  72. public function setPassword($value)
  73. {
  74. $this->password = $value;
  75. }
  76.  
  77. /**
  78. * Get password
  79. *
  80. * @return string The password.
  81. */
  82.  
  83. public function getPassword()
  84. {
  85. return $this->password;
  86. }
  87. }
Add Comment
Please, Sign In to add comment