StorageInterface.php 684 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. *
  4. * Cube Framework $Id$ eGUDboJjuwGPSA7r29ao4OeiZ+EgLZZtGcBXAr2iIhg=
  5. *
  6. * @link http://codecu.be/framework
  7. * @copyright Copyright (c) 2015 CodeCube SRL
  8. * @license http://codecu.be/framework/license Commercial License
  9. *
  10. * @version 1.4
  11. */
  12. namespace Cube\Authentication\Storage;
  13. /**
  14. * authentication storage interface
  15. *
  16. * Interface StorageInterface
  17. *
  18. * @package Cube\Authentication\Storage
  19. */
  20. interface StorageInterface
  21. {
  22. public function isEmpty();
  23. public function read();
  24. /**
  25. *
  26. * set storage contents
  27. *
  28. * @param mixed $contents
  29. */
  30. public function write($contents);
  31. public function clear();
  32. }