| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function accept(ReflectionClass $reflection, Descriptor $descriptor, $annotation): void |
||
| 30 | { |
||
| 31 | if (!($annotation instanceof Parents)) { |
||
| 32 | return; |
||
| 33 | } |
||
| 34 | $parents = []; |
||
| 35 | $context = $this->contextFactory->createFromReflector($reflection); |
||
| 36 | foreach ($annotation->value as $type) { |
||
| 37 | $parents[] = (string) $this->resolver->resolve($type, $context); |
||
| 38 | } |
||
| 39 | $descriptor->setParentNames($parents); |
||
| 40 | } |
||
| 42 |