UserInterface.php 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\User\Api\Data;
  7. /**
  8. * Admin user interface.
  9. *
  10. * @api
  11. * @since 100.0.2
  12. */
  13. interface UserInterface
  14. {
  15. /**
  16. * Get ID.
  17. *
  18. * @return int
  19. */
  20. public function getId();
  21. /**
  22. * Set ID.
  23. *
  24. * @param int $id
  25. * @return $this
  26. */
  27. public function setId($id);
  28. /**
  29. * Get first name.
  30. *
  31. * @return string
  32. */
  33. public function getFirstName();
  34. /**
  35. * Set first name.
  36. *
  37. * @param string $firstName
  38. * @return $this
  39. */
  40. public function setFirstName($firstName);
  41. /**
  42. * Get last name.
  43. *
  44. * @return string
  45. */
  46. public function getLastName();
  47. /**
  48. * Set last name.
  49. *
  50. * @param string $lastName
  51. * @return $this
  52. */
  53. public function setLastName($lastName);
  54. /**
  55. * Get email.
  56. *
  57. * @return string
  58. */
  59. public function getEmail();
  60. /**
  61. * Set email.
  62. *
  63. * @param string $email
  64. * @return $this
  65. */
  66. public function setEmail($email);
  67. /**
  68. * Get user name.
  69. *
  70. * @return string
  71. */
  72. public function getUserName();
  73. /**
  74. * Set user name.
  75. *
  76. * @param string $userName
  77. * @return $this
  78. */
  79. public function setUserName($userName);
  80. /**
  81. * Get password or password hash.
  82. *
  83. * @return string
  84. */
  85. public function getPassword();
  86. /**
  87. * Set password or password hash.
  88. *
  89. * @param string $password
  90. * @return $this
  91. */
  92. public function setPassword($password);
  93. /**
  94. * Get user record creation date.
  95. *
  96. * @return string
  97. */
  98. public function getCreated();
  99. /**
  100. * Set user record creation date.
  101. *
  102. * @param string $created
  103. * @return $this
  104. */
  105. public function setCreated($created);
  106. /**
  107. * Get user record modification date.
  108. *
  109. * @return string
  110. */
  111. public function getModified();
  112. /**
  113. * Set user record modification date.
  114. *
  115. * @param string $modified
  116. * @return $this
  117. */
  118. public function setModified($modified);
  119. /**
  120. * Check if user is active.
  121. *
  122. * @return int
  123. */
  124. public function getIsActive();
  125. /**
  126. * Set if user is active.
  127. *
  128. * @param int $isActive
  129. * @return $this
  130. */
  131. public function setIsActive($isActive);
  132. /**
  133. * Get user interface locale.
  134. *
  135. * @return string
  136. */
  137. public function getInterfaceLocale();
  138. /**
  139. * Set user interface locale.
  140. *
  141. * @param string $interfaceLocale
  142. * @return $this
  143. */
  144. public function setInterfaceLocale($interfaceLocale);
  145. }