Total Complexity | 1 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | abstract class AbstractAnnotation extends Annotation |
||
19 | { |
||
20 | /** |
||
21 | * @var mixed |
||
22 | */ |
||
23 | protected $xPrevValue = null; |
||
24 | |||
25 | /** |
||
26 | * Set the attribute previous value |
||
27 | * |
||
28 | * @param mixed $xPrevValue The previous value of the attribute |
||
29 | * |
||
30 | * @return void |
||
31 | */ |
||
32 | public function setPrevValue($xPrevValue) |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * Get the annotation name |
||
39 | * |
||
40 | * This is usually the corresponding option name in the Jaxon config. |
||
41 | * |
||
42 | * @return string |
||
43 | */ |
||
44 | abstract public function getName(): string; |
||
45 | |||
46 | /** |
||
47 | * Get the annotation value |
||
48 | * |
||
49 | * For attributes with multiple values, the previous value needs to be merged with the current. |
||
50 | * |
||
51 | * @return mixed |
||
52 | */ |
||
53 | abstract public function getValue(); |
||
54 | } |
||
55 |