| Conditions | 3 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 23 | public function getTypeFromMethodCall( |
||
| 24 | MethodReflection $methodReflection, |
||
| 25 | MethodCall $methodCall, |
||
| 26 | Scope $scope |
||
| 27 | ): Type\Type { |
||
| 28 | $reflection = $scope->getClassReflection(); |
||
| 29 | if ($reflection && $reflection->isSubclassOf(StateMetadata::class)) { |
||
| 30 | return new Type\ObjectType($reflection->getName()); |
||
| 31 | } |
||
| 32 | |||
| 33 | return new Type\ClassStringType(); |
||
| 34 | } |
||
| 36 |