Conditions | 5 |
Paths | 4 |
Total Lines | 18 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | public function process(\ReflectionClass $reflection, Definition $definition): void |
||
24 | { |
||
25 | $annotations = $this->reader->getClassAnnotations($reflection); |
||
26 | |||
27 | foreach ($annotations as $annotation) |
||
28 | { |
||
29 | if ($annotation instanceof Link) { |
||
30 | $link = $this->createLink($annotation); |
||
31 | |||
32 | $definition->addLink($link); |
||
33 | continue; |
||
34 | } |
||
35 | |||
36 | if ($annotation instanceof ResourceIdentifier && $annotation->type !== null) { |
||
37 | $definition->setType($annotation->type); |
||
38 | } |
||
39 | } |
||
40 | } |
||
41 | } |