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

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.

Details

array extractAll(string $rootDir)

Extract all symbol references from .phpstorm.meta.php files under the given root.

Parameters

string $rootDir

Return Value

array

array extractCallableRefs(string $rootDir)

Extract only callable references (functions + methods) from meta files.

Parameters

string $rootDir

Return Value

array

array extractConstantRefs(string $rootDir)

Extract only value references (class constants + global constants) from meta files.

Parameters

string $rootDir

Return Value

array

array extractArgumentsSetUsages(string $rootDir)

Extract argumentsSet usage names from meta files.

Parameters

string $rootDir

Return Value

array

array extractArgumentsSetDefinitions(string $rootDir)

Extract registerArgumentsSet definition names from meta files.

Parameters

string $rootDir

Return Value

array

array extractFromFile(string $filePath)

Extract references from a single meta file.

Parameters

string $filePath

Return Value

array