Total Complexity | 2 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | abstract class AbstractAnnotation extends Annotation implements IAnnotationParser |
||
22 | { |
||
23 | /** |
||
24 | * @var AnnotationReader |
||
25 | */ |
||
26 | protected $xReader; |
||
27 | |||
28 | /** |
||
29 | * @var mixed |
||
30 | */ |
||
31 | protected $xPrevValue = null; |
||
32 | |||
33 | /** |
||
34 | * @param AnnotationReader $xReader |
||
35 | */ |
||
36 | public function setReader(AnnotationReader $xReader): void |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * Set the attribute previous value |
||
43 | * |
||
44 | * @param mixed $xPrevValue The previous value of the attribute |
||
45 | * |
||
46 | * @return void |
||
47 | */ |
||
48 | public function setPrevValue($xPrevValue) |
||
51 | } |
||
52 | |||
53 | /** |
||
54 | * Get the annotation name |
||
55 | * |
||
56 | * This is usually the corresponding option name in the Jaxon config. |
||
57 | * |
||
58 | * @return string |
||
59 | */ |
||
60 | abstract public function getName(): string; |
||
61 | |||
62 | /** |
||
63 | * Get the annotation value |
||
64 | * |
||
65 | * For attributes with multiple values, the previous value needs to be merged with the current. |
||
66 | * |
||
67 | * @return mixed |
||
68 | */ |
||
69 | abstract public function getValue(); |
||
70 | } |
||
71 |