StorageInterface.php 533 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * Session storage interface
  4. *
  5. * Copyright © Magento, Inc. All rights reserved.
  6. * See COPYING.txt for license details.
  7. */
  8. namespace Magento\Framework\Session;
  9. /**
  10. * Interface \Magento\Framework\Session\StorageInterface
  11. *
  12. */
  13. interface StorageInterface
  14. {
  15. /**
  16. * Initialize storage data
  17. *
  18. * @param array $data
  19. * @return $this
  20. */
  21. public function init(array $data);
  22. /**
  23. * Get current storage namespace
  24. *
  25. * @return string
  26. */
  27. public function getNamespace();
  28. }