1 | <?php |
||
15 | class Reflection |
||
16 | { |
||
17 | /** @var Collection|Annotation[] */ |
||
18 | protected $annotationsFromClass; |
||
19 | |||
20 | /** @var Collection[] */ |
||
21 | protected $annotationsFromMethods; |
||
22 | |||
23 | /** @var Collection[] */ |
||
24 | protected $annotationsFromProperties; |
||
25 | |||
26 | /** |
||
27 | * @param Collection $annotationsFromClass |
||
28 | * @param Collection[] $annotationsFromMethods |
||
29 | * @param Collection[] $annotationsFromProperties |
||
30 | */ |
||
31 | 14 | public function __construct(Collection $annotationsFromClass, array $annotationsFromMethods, array $annotationsFromProperties) |
|
37 | |||
38 | /** |
||
39 | * @return Collection|Annotation[] |
||
40 | */ |
||
41 | 2 | public function getClassAnnotations() : Collection |
|
45 | |||
46 | /** |
||
47 | * @return Collection[] |
||
48 | */ |
||
49 | 1 | public function getMethodsAnnotations() : array |
|
53 | |||
54 | /** |
||
55 | * @return Collection[] |
||
56 | */ |
||
57 | 1 | public function getPropertiesAnnotations() : array |
|
61 | |||
62 | /** |
||
63 | * @param string $method |
||
64 | * @return Collection|Annotation[] |
||
65 | * @throws ReflectionException |
||
66 | */ |
||
67 | 6 | public function getMethodAnnotations(string $method) : Collection |
|
75 | |||
76 | /** |
||
77 | * @param string $property |
||
78 | * @return Collection|Annotation[] |
||
79 | * @throws ReflectionException |
||
80 | */ |
||
81 | 3 | public function getPropertyAnnotations(string $property) : Collection |
|
89 | } |
||
90 |