AnnotationInterface.php 850 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. namespace Drupal\Component\Annotation;
  3. /**
  4. * Defines a common interface for classed annotations.
  5. */
  6. interface AnnotationInterface {
  7. /**
  8. * Gets the value of an annotation.
  9. */
  10. public function get();
  11. /**
  12. * Gets the name of the provider of the annotated class.
  13. *
  14. * @return string
  15. */
  16. public function getProvider();
  17. /**
  18. * Sets the name of the provider of the annotated class.
  19. *
  20. * @param string $provider
  21. */
  22. public function setProvider($provider);
  23. /**
  24. * Gets the unique ID for this annotated class.
  25. *
  26. * @return string
  27. */
  28. public function getId();
  29. /**
  30. * Gets the class of the annotated class.
  31. *
  32. * @return string
  33. */
  34. public function getClass();
  35. /**
  36. * Sets the class of the annotated class.
  37. *
  38. * @param string $class
  39. */
  40. public function setClass($class);
  41. }