| 1: | <?php declare(strict_types = 1); |
| 2: | |
| 3: | namespace PHPStan\Rules\RestrictedUsage; |
| 4: | |
| 5: | use PHPStan\Analyser\Scope; |
| 6: | use PHPStan\DependencyInjection\ExtensionInterface; |
| 7: | use PHPStan\Reflection\ExtendedMethodReflection; |
| 8: | |
| 9: | |
| 10: | |
| 11: | |
| 12: | |
| 13: | |
| 14: | |
| 15: | |
| 16: | |
| 17: | |
| 18: | |
| 19: | |
| 20: | |
| 21: | |
| 22: | |
| 23: | |
| 24: | |
| 25: | |
| 26: | |
| 27: | |
| 28: | |
| 29: | #[ExtensionInterface(tag: self::METHOD_EXTENSION_TAG)] |
| 30: | interface RestrictedMethodUsageExtension |
| 31: | { |
| 32: | |
| 33: | public const METHOD_EXTENSION_TAG = 'phpstan.restrictedMethodUsageExtension'; |
| 34: | |
| 35: | public function isRestrictedMethodUsage( |
| 36: | ExtendedMethodReflection $methodReflection, |
| 37: | Scope $scope, |
| 38: | ): ?RestrictedUsage; |
| 39: | |
| 40: | } |
| 41: | |