Advertisement
rattlesneak

Untitled

Jan 16th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. <?php
  2.  
  3. namespace DUT\Models;
  4.  
  5. class User
  6. {
  7. protected $username;
  8. protected $name;
  9. protected $lastName;
  10. protected $password;
  11. protected $mail;
  12. protected $privileges;
  13.  
  14. public function __construct($username, $name, $lastName, $password, $mail, $privileges){
  15. $this->username = $username;
  16. $this->name = $name;
  17. $this->lastName = $lastName;
  18. $this->password = $password;
  19. $this->mail = $mail;
  20. $this->privileges = $privileges;
  21. }
  22. public function get_username(){
  23. return $this->username;
  24. }
  25. public function get_name(){
  26. return $this->name;
  27. }
  28. public function get_lastName(){
  29. return $this->lastName;
  30. }
  31. public function get_password(){
  32. return $this->password;
  33. }
  34. public function get_mail(){
  35. return $this->mail;
  36. }
  37. public function get_privileges(){
  38. return $this->privileges;
  39. }
  40. }
  41. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement