-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathAnnotationInterface.php
55 lines (46 loc) · 1.03 KB
/
AnnotationInterface.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
namespace Drupal\Component\Annotation;
/**
* Defines a common interface for classed annotations.
*/
interface AnnotationInterface {
/**
* Gets the value of an annotation.
*/
public function get();
/**
* Gets the name of the provider of the annotated class.
*
* @return string
* The provider of the annotated class.
*/
public function getProvider();
/**
* Sets the name of the provider of the annotated class.
*
* @param string $provider
* The provider of the annotated class.
*/
public function setProvider($provider);
/**
* Gets the unique ID for this annotated class.
*
* @return string
* The annotated class ID.
*/
public function getId();
/**
* Gets the class of the annotated class.
*
* @return string
* The class name of the annotated class.
*/
public function getClass();
/**
* Sets the class of the annotated class.
*
* @param string $class
* The class of the annotated class.
*/
public function setClass($class);
}