PageRenderTime 36ms CodeModel.GetById 10ms RepoModel.GetById 1ms app.codeStats 0ms

/src/application/libraries/Zend/Auth/Storage/Interface.php

https://bitbucket.org/masnug/grc276-blog-laravel
PHP | 66 lines | 8 code | 4 blank | 54 comment | 0 complexity | b0e1ab626efe6d2ee1eb9df73b83cf99 MD5 | raw file
  1. <?php
  2. /**
  3. * Zend Framework
  4. *
  5. * LICENSE
  6. *
  7. * This source file is subject to the new BSD license that is bundled
  8. * with this package in the file LICENSE.txt.
  9. * It is also available through the world-wide-web at this URL:
  10. * http://framework.zend.com/license/new-bsd
  11. * If you did not receive a copy of the license and are unable to
  12. * obtain it through the world-wide-web, please send an email
  13. * to license@zend.com so we can send you a copy immediately.
  14. *
  15. * @category Zend
  16. * @package Zend_Auth
  17. * @subpackage Storage
  18. * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
  19. * @license http://framework.zend.com/license/new-bsd New BSD License
  20. * @version $Id: Interface.php 23775 2011-03-01 17:25:24Z ralph $
  21. */
  22. /**
  23. * @category Zend
  24. * @package Zend_Auth
  25. * @subpackage Storage
  26. * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
  27. * @license http://framework.zend.com/license/new-bsd New BSD License
  28. */
  29. interface Zend_Auth_Storage_Interface
  30. {
  31. /**
  32. * Returns true if and only if storage is empty
  33. *
  34. * @throws Zend_Auth_Storage_Exception If it is impossible to determine whether storage is empty
  35. * @return boolean
  36. */
  37. public function isEmpty();
  38. /**
  39. * Returns the contents of storage
  40. *
  41. * Behavior is undefined when storage is empty.
  42. *
  43. * @throws Zend_Auth_Storage_Exception If reading contents from storage is impossible
  44. * @return mixed
  45. */
  46. public function read();
  47. /**
  48. * Writes $contents to storage
  49. *
  50. * @param mixed $contents
  51. * @throws Zend_Auth_Storage_Exception If writing $contents to storage is impossible
  52. * @return void
  53. */
  54. public function write($contents);
  55. /**
  56. * Clears contents from storage
  57. *
  58. * @throws Zend_Auth_Storage_Exception If clearing contents from storage is impossible
  59. * @return void
  60. */
  61. public function clear();
  62. }