Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
16 | public function getChildren(\ReflectionClass $class): array |
||
17 | { |
||
18 | $children = []; |
||
19 | |||
20 | foreach ($this->getClassAnnotations($class) as $annotation) { |
||
21 | if (!$annotation instanceof AddChild) { |
||
22 | continue; |
||
23 | } |
||
24 | |||
25 | $children[$annotation->getClass()] = $annotation->getField(); |
||
26 | } |
||
27 | |||
28 | return $children; |
||
29 | } |
||
31 |