3 namespace Drupal\Component\Annotation;
6 * Defines a common interface for classed annotations.
8 interface AnnotationInterface {
11 * Gets the value of an annotation.
13 public function get();
16 * Gets the name of the provider of the annotated class.
20 public function getProvider();
23 * Sets the name of the provider of the annotated class.
25 * @param string $provider
27 public function setProvider($provider);
30 * Gets the unique ID for this annotated class.
34 public function getId();
37 * Gets the class of the annotated class.
41 public function getClass();
44 * Sets the class of the annotated class.
46 * @param string $class
48 public function setClass($class);