DataPersistorInterface.php 700 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\App\Request;
  7. /**
  8. * @api
  9. * @since 100.1.0
  10. */
  11. interface DataPersistorInterface
  12. {
  13. /**
  14. * Store data by key
  15. *
  16. * @param string $key
  17. * @param mixed $data
  18. * @return void
  19. * @since 100.1.0
  20. */
  21. public function set($key, $data);
  22. /**
  23. * Retrieve data by key
  24. *
  25. * @param string $key
  26. * @return mixed
  27. * @since 100.1.0
  28. */
  29. public function get($key);
  30. /**
  31. * Clear data by key
  32. *
  33. * @param string $key
  34. * @return void
  35. * @since 100.1.0
  36. */
  37. public function clear($key);
  38. }