1 | <?php |
||
11 | class Annotations |
||
12 | { |
||
13 | /** |
||
14 | * @var array|Annotation[] |
||
15 | */ |
||
16 | private $annotations; |
||
17 | |||
18 | /** |
||
19 | * @param Annotation[] $annotations |
||
20 | */ |
||
21 | public function __construct(array $annotations) |
||
25 | |||
26 | /** |
||
27 | * @return array|Annotation[] |
||
28 | */ |
||
29 | public function getAnnotations(): array |
||
33 | |||
34 | /** |
||
35 | * @param string $annotationType |
||
36 | * @return Annotation[] |
||
37 | */ |
||
38 | public function findAnnotations(string $annotationType): array |
||
44 | |||
45 | public function findAnnotation(string $annotationType): ?Annotation |
||
58 | } |
||
59 |