Guest User

Untitled

a guest
Jan 21st, 2018
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. <?php
  2.  
  3. /**
  4. * The "User" class defines a user of the ticketing software.
  5. *
  6. * @author Andrew Stewart <andrew.stewart@itas.ca>
  7. */
  8. class User {
  9.  
  10. /**
  11. * A unique number to ID the user
  12. * @var int
  13. */
  14. private int $userId;
  15.  
  16. /**
  17. * The login name of the user
  18. * @var string
  19. */
  20. private string $accountName;
  21.  
  22. /**
  23. * The first name of the user
  24. * @var string
  25. */
  26. private string $firstName;
  27.  
  28. /**
  29. * The last name of the user
  30. * @var string
  31. */
  32. private string $lastName;
  33.  
  34. /**
  35. * TODO - description of description
  36. * @var string
  37. */
  38. private string $description;
  39.  
  40. /**
  41. * The email address of the user
  42. * @var string
  43. */
  44. private string $email;
  45.  
  46. /**
  47. * The phone number of the user
  48. * @var string
  49. */
  50. private string $telephone;
  51.  
  52. /**
  53. * The authorization level of the user
  54. * @var string
  55. */
  56. private int $authLevel;
  57.  
  58. /**
  59. * Object constructor.
  60. * Instantiates all MediaItem class variables.
  61. *
  62. * @param string $accountName
  63. * @param string $firstName
  64. * @param string $lastName
  65. * @param string $description
  66. * @param string $email
  67. * @param string $telephone
  68. * @param int $authLevel
  69. *
  70. * @access public
  71. */
  72. public function __construct($accountName, $firstName, $lastName, $description, $email, $telephone, $authLevel) {
  73. $this->accountName = $accountName;
  74. $this->firstName = $firstName;
  75. $this->lastName = $lastName;
  76. $this->description = $description;
  77. $this->email = $email;
  78. $this->telephone = $telephone;
  79. $this->authLevel = $authLevel;
  80. }
  81. }
Add Comment
Please, Sign In to add comment