| Conditions | 3 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public static function getClassAnnotation(Reader $reader, ReflectionClass $refClass, string $annotationClass) |
||
| 18 | { |
||
| 19 | do { |
||
| 20 | $type = $reader->getClassAnnotation($refClass, $annotationClass); |
||
| 21 | if ($type !== null) { |
||
| 22 | return $type; |
||
| 23 | } |
||
| 24 | $refClass = $refClass->getParentClass(); |
||
| 25 | } while ($refClass); |
||
| 26 | return null; |
||
| 27 | } |
||
| 43 | } |