1: <?php declare(strict_types = 1);
2:
3: namespace PHPStan\Reflection\Deprecation;
4:
5: use PHPStan\BetterReflection\Reflection\Adapter\ReflectionClassConstant;
6:
7: /**
8: * This interface allows you to provide custom deprecation information
9: *
10: * To register it in the configuration file use the following tag:
11: *
12: * ```
13: * services:
14: * -
15: * class: App\PHPStan\MyProvider
16: * tags:
17: * - phpstan.classConstantDeprecationExtension
18: * ```
19: *
20: * @api
21: */
22: interface ClassConstantDeprecationExtension
23: {
24:
25: public const CLASS_CONSTANT_EXTENSION_TAG = 'phpstan.classConstantDeprecationExtension';
26:
27: public function getClassConstantDeprecation(ReflectionClassConstant $reflection): ?Deprecation;
28:
29: }
30: