Total Complexity | 5 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
13 | trait AnnotationReaderTrait |
||
14 | { |
||
15 | private $annotationReader; |
||
16 | |||
17 | public function __construct(Reader $annotationReader) |
||
20 | } |
||
21 | |||
22 | protected function getClassAnnotation(\ReflectionClass $class, string $annotation) |
||
23 | { |
||
24 | return $this->annotationReader->getClassAnnotation($class, $annotation); |
||
25 | } |
||
26 | |||
27 | protected function getClassAnnotations(\ReflectionClass $class): array |
||
30 | } |
||
31 | |||
32 | protected function getPropertyAnnotations(\ReflectionProperty $property): array |
||
33 | { |
||
34 | return $this->annotationReader->getPropertyAnnotations($property); |
||
35 | } |
||
36 | |||
37 | protected function getMethodAnnotation(\ReflectionMethod $method, string $annotation) |
||
40 | } |
||
41 | } |
||
42 |