| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | public function getTypeFromMethodCall( |
||
| 27 | MethodReflection $methodReflection, |
||
| 28 | MethodCall $methodCall, |
||
| 29 | Scope $scope |
||
| 30 | ) : Type { |
||
| 31 | $classConstFetch = $methodCall->args[0]->value; |
||
| 32 | assert($classConstFetch instanceof ClassConstFetch); |
||
| 33 | |||
| 34 | $fullyQualified = $classConstFetch->class; |
||
| 35 | assert($fullyQualified instanceof FullyQualified); |
||
| 36 | |||
| 37 | return new ObjectType($fullyQualified->toCodeString()); |
||
| 38 | } |
||
| 40 |