| Conditions | 4 |
| Paths | 4 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 4 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 17 | 6 | public function finalize(): void |
|
| 18 | { |
||
| 19 | 6 | foreach ($this->methods as $method) { |
|
| 20 | 1 | foreach ($this->reader->getFunctionMetadata($method->method, $this->attribute) as $attribute) { |
|
| 21 | 1 | $type = $this->typeRegistry->get($attribute->targetType); |
|
| 22 | |||
| 23 | 1 | if ($type instanceof DynamicObjectTypeInterface) { |
|
| 24 | 1 | $type->addAdditionalField(new ReflectionMethodWithAttribute($method->method, $attribute)); |
|
| 25 | } |
||
| 30 |