MetaFileReferenceExtractor
final class MetaFileReferenceExtractor (View source)
Traits
Constants
| private SKIP_NAMESPACES |
|
| private SKIP_FUNCTIONS |
|
| private SKIP_CONSTANTS |
Constants defined inside PHPSTORM_META namespace, not real PHP symbols |
Methods
Extract all symbol references from .phpstorm.meta.php files under the given root.
Extract only callable references (functions + methods) from meta files.
Extract only value references (class constants + global constants) from meta files.
Extract argumentsSet usage names from meta files.
Extract registerArgumentsSet definition names from meta files.
Extract references from a single meta file.
Details
array
extractAll(string $rootDir)
Extract all symbol references from .phpstorm.meta.php files under the given root.
array
extractCallableRefs(string $rootDir)
Extract only callable references (functions + methods) from meta files.
array
extractConstantRefs(string $rootDir)
Extract only value references (class constants + global constants) from meta files.
array
extractArgumentsSetUsages(string $rootDir)
Extract argumentsSet usage names from meta files.
array
extractArgumentsSetDefinitions(string $rootDir)
Extract registerArgumentsSet definition names from meta files.
array
extractFromFile(string $filePath)
Extract references from a single meta file.