ResourceInterface.php 1021 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. /**
  3. *
  4. * Cube Framework $Id$ PMfKjyBdscdnXjDLN9axoNkp4JWvI9ZIpjOAOaPlOhQ=
  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. /**
  13. */
  14. namespace Cube\Application\Resource;
  15. /**
  16. * application resource interface
  17. *
  18. * Interface ResourceInterface
  19. *
  20. * @package Cube\Application\Resource
  21. */
  22. interface ResourceInterface
  23. {
  24. public function getOptions();
  25. /**
  26. *
  27. * set options array
  28. *
  29. * @param array $options
  30. *
  31. * @return $this
  32. */
  33. public function setOptions(array $options);
  34. /**
  35. *
  36. * get a key from the options array
  37. *
  38. * @param string $key
  39. */
  40. public function getOption($key);
  41. /**
  42. *
  43. * set or unset a key in the options array
  44. *
  45. * @param string $key
  46. * @param mixed|null $value
  47. */
  48. public function setOption($key, $value = null);
  49. public function init();
  50. }