| Conditions | 5 |
| Paths | 12 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 5.0488 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 27 | 2 | public function finalize(): void |
|
| 28 | { |
||
| 29 | 2 | $type = $this->config->getMutationType(); |
|
| 30 | |||
| 31 | 2 | $mutation = null !== $type && $this->typeRegistry->has($type) |
|
| 32 | 2 | ? $this->typeRegistry->get($type) |
|
| 33 | : null; |
||
| 34 | |||
| 35 | 2 | if ($mutation instanceof DynamicObjectTypeInterface) { |
|
| 36 | 2 | foreach ($this->methods as $method) { |
|
| 37 | 1 | $mutation->addAdditionalField($method); |
|
| 38 | } |
||
| 42 |