1
0

BridgeInterface.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?php
  2. interface BridgeInterface {
  3. /**
  4. * Collects data from the site
  5. */
  6. public function collectData();
  7. /**
  8. * Returns an array of cachable elements
  9. *
  10. * @return array Associative array of cachable elements
  11. */
  12. public function getCachable();
  13. /**
  14. * Returns the description
  15. *
  16. * @return string Description
  17. */
  18. public function getDescription();
  19. /**
  20. * Return an array of extra information
  21. *
  22. * @return array Associative array of extra information
  23. */
  24. public function getExtraInfos();
  25. /**
  26. * Returns an array of collected items
  27. *
  28. * @return array Associative array of items
  29. */
  30. public function getItems();
  31. /**
  32. * Returns the bridge maintainer
  33. *
  34. * @return string Bridge maintainer
  35. */
  36. public function getMaintainer();
  37. /**
  38. * Returns the bridge name
  39. *
  40. * @return string Bridge name
  41. */
  42. public function getName();
  43. /**
  44. * Returns the bridge parameters
  45. *
  46. * @return array Bridge parameters
  47. */
  48. public function getParameters();
  49. /**
  50. * Returns the bridge URI
  51. *
  52. * @return string Bridge URI
  53. */
  54. public function getURI();
  55. /**
  56. * Sets the cache instance
  57. *
  58. * @param object CacheInterface The cache instance
  59. */
  60. public function setCache(\CacheInterface $cache);
  61. }