您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

LuUsersDbo.php 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: robin
  5. * Date: 7/7/16
  6. * Time: 4:36 PM
  7. */
  8. namespace Luticate\Auth\Dbo\Users;
  9. use Luticate\Utils\Dbo\LuDbo;
  10. class LuUsersDbo extends LuDbo
  11. {
  12. /**
  13. * @var $_id int
  14. */
  15. protected $_id;
  16. /**
  17. * @var $_username string
  18. */
  19. protected $_username;
  20. /**
  21. * @var $_password string
  22. * @nullable
  23. */
  24. protected $_password;
  25. /**
  26. * @var $_salt string
  27. * @between 10 10
  28. */
  29. protected $_salt;
  30. /**
  31. * @var $_profileId int
  32. * @nullable
  33. */
  34. protected $_profileId;
  35. /**
  36. * @var $_externalAuth int
  37. * @nullable
  38. */
  39. protected $_externalAuth;
  40. /**
  41. * @var $_email string
  42. */
  43. protected $_email;
  44. /**
  45. * @var $_firstname string
  46. * @nullable
  47. */
  48. protected $_firstname;
  49. /**
  50. * @var $_lastname string
  51. * @nullable
  52. */
  53. protected $_lastname;
  54. /**
  55. * @return int
  56. */
  57. public function getId()
  58. {
  59. return $this->_id;
  60. }
  61. /**
  62. * @param int $id
  63. */
  64. public function setId($id)
  65. {
  66. $this->_id = $id;
  67. }
  68. /**
  69. * @return string
  70. */
  71. public function getUsername()
  72. {
  73. return $this->_username;
  74. }
  75. /**
  76. * @param string $username
  77. */
  78. public function setUsername($username)
  79. {
  80. $this->_username = $username;
  81. }
  82. /**
  83. * @return string
  84. */
  85. public function getPassword()
  86. {
  87. return $this->_password;
  88. }
  89. /**
  90. * @param string $password
  91. */
  92. public function setPassword($password)
  93. {
  94. $this->_password = $password;
  95. }
  96. /**
  97. * @return string
  98. */
  99. public function getSalt()
  100. {
  101. return $this->_salt;
  102. }
  103. /**
  104. * @param string $salt
  105. */
  106. public function setSalt($salt)
  107. {
  108. $this->_salt = $salt;
  109. }
  110. /**
  111. * @return int
  112. */
  113. public function getProfileId()
  114. {
  115. return $this->_profileId;
  116. }
  117. /**
  118. * @param int $profileId
  119. */
  120. public function setProfileId($profileId)
  121. {
  122. $this->_profileId = $profileId;
  123. }
  124. /**
  125. * @return int
  126. */
  127. public function getExternalAuth()
  128. {
  129. return $this->_externalAuth;
  130. }
  131. /**
  132. * @param int $externalAuth
  133. */
  134. public function setExternalAuth($externalAuth)
  135. {
  136. $this->_externalAuth = $externalAuth;
  137. }
  138. /**
  139. * @return string
  140. */
  141. public function getEmail()
  142. {
  143. return $this->_email;
  144. }
  145. /**
  146. * @param string $email
  147. */
  148. public function setEmail($email)
  149. {
  150. $this->_email = $email;
  151. }
  152. /**
  153. * @return string
  154. */
  155. public function getFirstname()
  156. {
  157. return $this->_firstname;
  158. }
  159. /**
  160. * @param string $firstname
  161. */
  162. public function setFirstname($firstname)
  163. {
  164. $this->_firstname = $firstname;
  165. }
  166. /**
  167. * @return string
  168. */
  169. public function getLastname()
  170. {
  171. return $this->_lastname;
  172. }
  173. /**
  174. * @param string $lastname
  175. */
  176. public function setLastname($lastname)
  177. {
  178. $this->_lastname = $lastname;
  179. }
  180. /**
  181. * @return LuUsersLiteDbo
  182. */
  183. public function toLite()
  184. {
  185. return $this->castAs(LuUsersLiteDbo::class);
  186. }
  187. }