Advertisement
Guest User

Untitled

a guest
Sep 13th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.27 KB | None | 0 0
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Tomek
  5. * Date: 29.08.2018
  6. * Time: 19:01
  7. */
  8.  
  9. class User
  10. {
  11. /**
  12. * @var int
  13. */
  14. private $id;
  15. /**
  16. * @var string
  17. */
  18. private $email;
  19. /**
  20. * @var string
  21. */
  22. private $password;
  23. /**
  24. * @var string
  25. */
  26. private $firstName;
  27. /**
  28. * @var string
  29. */
  30. private $lastName;
  31. /**
  32. * @var int
  33. */
  34. private $age;
  35. /**
  36. * @var string
  37. */
  38. private $avatar;
  39.  
  40. /**
  41. * @return int
  42. */
  43. public function getId()
  44. {
  45. return $this->id;
  46. }
  47.  
  48. /**
  49. * @param int $id
  50. */
  51. public function setId($id)
  52. {
  53. $this->id = $id;
  54. }
  55.  
  56. /**
  57. * @return string
  58. */
  59. public function getEmail()
  60. {
  61. return $this->email;
  62. }
  63.  
  64. /**
  65. * @param string $email
  66. */
  67. public function setEmail($email)
  68. {
  69. $this->email = $email;
  70. }
  71.  
  72. /**
  73. * @return string
  74. */
  75. public function getPassword()
  76. {
  77. return $this->password;
  78. }
  79.  
  80. /**
  81. * @param string $password
  82. */
  83. public function setPassword($password)
  84. {
  85. $this->password = $password;
  86. }
  87.  
  88. /**
  89. * @return string
  90. */
  91. public function getFirstName()
  92. {
  93. return $this->firstName;
  94. }
  95.  
  96. /**
  97. * @param string $firstName
  98. */
  99. public function setFirstName($firstName)
  100. {
  101. $this->firstName = $firstName;
  102. }
  103.  
  104. /**
  105. * @return string
  106. */
  107. public function getLastName()
  108. {
  109. return $this->lastName;
  110. }
  111.  
  112. /**
  113. * @param string $lastName
  114. */
  115. public function setLastName($lastName)
  116. {
  117. $this->lastName = $lastName;
  118. }
  119.  
  120. /**
  121. * @return int
  122. */
  123. public function getAge()
  124. {
  125. return $this->age;
  126. }
  127.  
  128. /**
  129. * @param int $age
  130. */
  131. public function setAge($age)
  132. {
  133. $this->age = $age;
  134. }
  135.  
  136. /**
  137. * @return string
  138. */
  139. public function getAvatar()
  140. {
  141. return $this->avatar;
  142. }
  143.  
  144. /**
  145. * @param string $avatar
  146. */
  147. public function setAvatar($avatar)
  148. {
  149. $this->avatar = $avatar;
  150. }
  151. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement