| 1: | <?php declare(strict_types = 1); |
| 2: | |
| 3: | namespace PHPStan\Reflection\Deprecation; |
| 4: | |
| 5: | use PHPStan\BetterReflection\Reflection\Adapter\ReflectionProperty; |
| 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.propertyDeprecationExtension |
| 18: | * ``` |
| 19: | * |
| 20: | * @api |
| 21: | */ |
| 22: | interface PropertyDeprecationExtension |
| 23: | { |
| 24: | |
| 25: | public const PROPERTY_EXTENSION_TAG = 'phpstan.propertyDeprecationExtension'; |
| 26: | |
| 27: | public function getPropertyDeprecation(ReflectionProperty $reflection): ?Deprecation; |
| 28: | |
| 29: | } |
| 30: |