PageRenderTime 47ms CodeModel.GetById 15ms RepoModel.GetById 1ms app.codeStats 0ms

/src/application/libraries/Zend/Http/UserAgent/Storage.php

https://bitbucket.org/masnug/grc276-blog-laravel
PHP | 65 lines | 8 code | 4 blank | 53 comment | 0 complexity | bcc81aa92dc0636197fb251105cd606b 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_Http
  17. * @subpackage UserAgent
  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. */
  21. /**
  22. * @category Zend
  23. * @package Zend_Http
  24. * @subpackage UserAgent
  25. * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
  26. * @license http://framework.zend.com/license/new-bsd New BSD License
  27. */
  28. interface Zend_Http_UserAgent_Storage
  29. {
  30. /**
  31. * Returns true if and only if storage is empty
  32. *
  33. * @throws Zend_Http_UserAgent_Storage_Exception If it is impossible to determine whether storage is empty
  34. * @return boolean
  35. */
  36. public function isEmpty();
  37. /**
  38. * Returns the contents of storage associated to the key parameter
  39. *
  40. * Behavior is undefined when storage is empty.
  41. *
  42. * @throws Zend_Http_UserAgent_Storage_Exception If reading contents from storage is impossible
  43. * @return mixed
  44. */
  45. public function read();
  46. /**
  47. * Writes $contents associated to the key parameter to storage
  48. *
  49. * @param mixed $contents
  50. * @throws Zend_Http_UserAgent_Storage_Exception If writing $contents to storage is impossible
  51. * @return void
  52. */
  53. public function write($contents);
  54. /**
  55. * Clears contents from storage
  56. *
  57. * @throws Zend_Http_UserAgent_Storage_Exception If clearing contents from storage is impossible
  58. * @return void
  59. */
  60. public function clear();
  61. }