1 | <?php |
||
9 | class Annotation |
||
10 | { |
||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | private $annotationType; |
||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | private $annotationComment; |
||
19 | |||
20 | /** |
||
21 | * @param string $annotationType The type of the annotation (the string after the @) |
||
22 | * @param string $annotationComment Anything to the right of the annotation. |
||
23 | */ |
||
24 | public function __construct(string $annotationType, string $annotationComment) |
||
29 | |||
30 | /** |
||
31 | * Return the type of the annotation (the string after the @) |
||
32 | * |
||
33 | * @return string |
||
34 | */ |
||
35 | public function getAnnotationType(): string |
||
39 | |||
40 | /** |
||
41 | * Return anything to the right of the annotation. |
||
42 | * |
||
43 | * @return string |
||
44 | */ |
||
45 | public function getAnnotationComment(): string |
||
49 | } |
||
50 |