StorageInterface.php 820 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Backend\Model\Auth;
  7. /**
  8. * Backend Auth Storage interface
  9. *
  10. * @api
  11. * @since 100.0.2
  12. */
  13. interface StorageInterface
  14. {
  15. /**
  16. * Perform login specific actions
  17. *
  18. * @return $this
  19. * @abstract
  20. * @api
  21. */
  22. public function processLogin();
  23. /**
  24. * Perform logout specific actions
  25. *
  26. * @return $this
  27. * @abstract
  28. * @api
  29. */
  30. public function processLogout();
  31. /**
  32. * Check if user is logged in
  33. *
  34. * @return bool
  35. * @abstract
  36. * @api
  37. */
  38. public function isLoggedIn();
  39. /**
  40. * Prolong storage lifetime
  41. *
  42. * @return void
  43. * @abstract
  44. * @api
  45. */
  46. public function prolong();
  47. }