MetadataInterface.php 948 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. /*
  3. * This file is part of the Sonata Project package.
  4. *
  5. * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Sonata\CoreBundle\Model;
  11. /**
  12. * @author Hugo Briand <briand@ekino.com>
  13. */
  14. interface MetadataInterface
  15. {
  16. /**
  17. * @return string
  18. */
  19. public function getTitle();
  20. /**
  21. * @return string
  22. */
  23. public function getDescription();
  24. /**
  25. * @return mixed
  26. */
  27. public function getImage();
  28. /**
  29. * @return string
  30. */
  31. public function getDomain();
  32. /**
  33. * @return array
  34. */
  35. public function getOptions();
  36. /**
  37. * @param string $name The option key
  38. * @param mixed $default The default value if option not found
  39. *
  40. * @return mixed
  41. */
  42. public function getOption($name, $default = null);
  43. }