We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Total Complexity | 8 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 10 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
16 | class AnnotationParser extends MetadataParser |
||
17 | { |
||
18 | const METADATA_FORMAT = '@%s'; |
||
19 | |||
20 | protected static ?AnnotationReader $annotationReader = null; |
||
21 | |||
22 | protected static function getMetadatas(Reflector $reflector): array |
||
23 | { |
||
24 | $reader = self::getAnnotationReader(); |
||
25 | |||
26 | switch (true) { |
||
27 | case $reflector instanceof ReflectionClass: return $reader->getClassAnnotations($reflector); |
||
28 | case $reflector instanceof ReflectionMethod: return $reader->getMethodAnnotations($reflector); |
||
29 | case $reflector instanceof ReflectionProperty: return $reader->getPropertyAnnotations($reflector); |
||
30 | } |
||
31 | |||
32 | return []; |
||
33 | } |
||
34 | |||
35 | protected static function getAnnotationReader(): AnnotationReader |
||
48 | } |
||
49 | } |
||
50 |
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.