1: | <?php declare(strict_types = 1); |
2: | |
3: | namespace PHPStan\Type; |
4: | |
5: | use PhpParser\Node\Expr\StaticCall; |
6: | use PHPStan\Analyser\Scope; |
7: | use PHPStan\Analyser\SpecifiedTypes; |
8: | use PHPStan\Analyser\TypeSpecifierContext; |
9: | use PHPStan\Reflection\MethodReflection; |
10: | |
11: | |
12: | |
13: | |
14: | |
15: | |
16: | |
17: | |
18: | |
19: | |
20: | |
21: | |
22: | |
23: | |
24: | |
25: | |
26: | |
27: | |
28: | interface StaticMethodTypeSpecifyingExtension |
29: | { |
30: | |
31: | |
32: | public function getClass(): string; |
33: | |
34: | public function isStaticMethodSupported(MethodReflection $staticMethodReflection, StaticCall $node, TypeSpecifierContext $context): bool; |
35: | |
36: | public function specifyTypes(MethodReflection $staticMethodReflection, StaticCall $node, Scope $scope, TypeSpecifierContext $context): SpecifiedTypes; |
37: | |
38: | } |
39: | |