Guest User

Untitled

a guest
Dec 6th, 2017
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. <?php
  2.  
  3. namespace models;
  4.  
  5. /**
  6. * @Entity
  7. * @Table(name="user")
  8. */
  9.  
  10. class User
  11. {
  12. /**
  13. * @Id
  14. * @Column(type="integer", nullable=false)
  15. * @GeneratedValue(strategy="AUTO")
  16. */
  17. private $id;
  18.  
  19. /**
  20. * @Column(type="string", length=32, unique=true, nullable=true)
  21. */
  22. private $username;
  23.  
  24. /**
  25. * @Column(type="string", length=64, nullable=true)
  26. */
  27. private $password;
  28.  
  29. public function getId() { return $this->id; }
  30. public function setId($id) { $this->id = $id; }
  31. public function setUsername($username) { $this->username = $username; }
  32. public function getUsername() { return $this->username; }
  33. public function setPassword($password) { $this->password = $password; }
  34. public function getPassword() { return $this->password; }
  35.  
  36. }
Add Comment
Please, Sign In to add comment