Total Complexity | 3 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | trait DocumentationTrait |
||
27 | { |
||
28 | /** |
||
29 | * @var string|null $documentation The documentation. |
||
30 | */ |
||
31 | protected $documentation; |
||
32 | |||
33 | /** |
||
34 | * @var Collection|AnnotationInterface[] $annotations The annotations contained in the documentation. |
||
35 | */ |
||
36 | protected $annotations; |
||
37 | |||
38 | /** |
||
39 | * @param string|null $documentation The new documentation to be set. |
||
40 | */ |
||
41 | public function setDocumentation(?string $documentation): void |
||
42 | { |
||
43 | $this->documentation = $documentation; |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * @return string|null The current documentation. |
||
48 | */ |
||
49 | public function getDocumentation(): ?string |
||
50 | { |
||
51 | return $this->documentation; |
||
52 | } |
||
53 | |||
54 | /** |
||
55 | * @param AnnotationInterface $annotation The annotation to add. |
||
56 | */ |
||
57 | public function addAnnotation(AnnotationInterface $annotation): void |
||
60 | } |
||
61 | } |
||
62 |