User.class.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?php
  2. /**
  3. * User class
  4. *
  5. * @author Christopher Han <xiphux@gmail.com>
  6. * @copyright Copyright (c) 2012 Christopher Han
  7. * @package GitPHP
  8. * @subpackage Auth
  9. */
  10. class GitPHP_User
  11. {
  12. /**
  13. * Username
  14. *
  15. * @var string
  16. */
  17. protected $username;
  18. /**
  19. * Password
  20. *
  21. * @var string
  22. */
  23. protected $password;
  24. /**
  25. * Constructor
  26. *
  27. * @param string $username username
  28. * @param string $password password
  29. */
  30. public function __construct($username, $password)
  31. {
  32. $this->username = $username;
  33. $this->password = $password;
  34. }
  35. /**
  36. * Get the username
  37. *
  38. * @return string username
  39. */
  40. public function GetUsername()
  41. {
  42. return $this->username;
  43. }
  44. /**
  45. * Set the username
  46. *
  47. * @param string $username username
  48. */
  49. public function SetUsername($username)
  50. {
  51. $this->username = $username;
  52. }
  53. /**
  54. * Get the password
  55. *
  56. * @return string password
  57. */
  58. public function GetPassword()
  59. {
  60. return $this->password;
  61. }
  62. /**
  63. * Set the password
  64. *
  65. * @param string $password password
  66. */
  67. public function SetPassword($password)
  68. {
  69. $this->password = $password;
  70. }
  71. }