1: <?php declare(strict_types = 1);
2:
3: namespace PHPStan\Reflection;
4:
5: use PHPStan\TrinaryLogic;
6: use PHPStan\Type\Type;
7:
8: /**
9: * The purpose of this interface is to be able to
10: * answer more questions about methods
11: * without breaking backward compatibility
12: * with existing MethodsClassReflectionExtension.
13: *
14: * Developers are meant to only implement MethodReflection
15: * and its methods in their code.
16: *
17: * New methods on ExtendedMethodReflection will be added
18: * in minor versions.
19: *
20: * @api
21: */
22: interface ExtendedMethodReflection extends MethodReflection
23: {
24:
25: public function getAsserts(): Assertions;
26:
27: public function getSelfOutType(): ?Type;
28:
29: public function returnsByReference(): TrinaryLogic;
30:
31: }
32: