| 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\ClassReflection; |
| 8: | use PHPStan\Rules\ClassNameUsageLocation; |
| 9: | |
| 10: | |
| 11: | |
| 12: | |
| 13: | |
| 14: | |
| 15: | |
| 16: | |
| 17: | |
| 18: | |
| 19: | |
| 20: | |
| 21: | |
| 22: | |
| 23: | |
| 24: | |
| 25: | |
| 26: | |
| 27: | |
| 28: | |
| 29: | |
| 30: | |
| 31: | |
| 32: | #[ExtensionInterface(tag: self::CLASS_NAME_EXTENSION_TAG)] |
| 33: | interface RestrictedClassNameUsageExtension |
| 34: | { |
| 35: | |
| 36: | public const CLASS_NAME_EXTENSION_TAG = 'phpstan.restrictedClassNameUsageExtension'; |
| 37: | |
| 38: | public function isRestrictedClassNameUsage( |
| 39: | ClassReflection $classReflection, |
| 40: | Scope $scope, |
| 41: | ClassNameUsageLocation $location, |
| 42: | ): ?RestrictedUsage; |
| 43: | |
| 44: | } |
| 45: | |