1: <?php declare(strict_types = 1);
2:
3: namespace PHPStan\Reflection;
4:
5: /**
6: * This is the interface custom methods class reflection extensions implement.
7: *
8: * To register it in the configuration file use the `phpstan.broker.methodsClassReflectionExtension` service tag:
9: *
10: * ```
11: * services:
12: * -
13: * class: App\PHPStan\MyMethodsClassReflectionExtension
14: * tags:
15: * - phpstan.broker.methodsClassReflectionExtension
16: * ```
17: *
18: * Learn more: https://phpstan.org/developing-extensions/class-reflection-extensions
19: *
20: * @api
21: */
22: interface MethodsClassReflectionExtension
23: {
24:
25: public function hasMethod(ClassReflection $classReflection, string $methodName): bool;
26:
27: public function getMethod(ClassReflection $classReflection, string $methodName): MethodReflection;
28:
29: }
30: