interface ClassNodeExtractorInterface (View source)

Extracts class AST nodes from PHP stub code.

Methods

extractClass(string $stubCode)

No description

array
extractAllClasses(string $stubCode)

No description

array
extractAllClassesWithImports(string $stubCode)

Extract all class nodes with their import context.

Details

ClassNode extractClass(string $stubCode)

No description

Parameters

string $stubCode

Return Value

ClassNode

Class node with namespace set

Exceptions

RuntimeException

array extractAllClasses(string $stubCode)

No description

Parameters

string $stubCode

Return Value

array

Array of class nodes with namespace set

array extractAllClassesWithImports(string $stubCode)

Extract all class nodes with their import context.

Parameters

string $stubCode

Return Value

array

Array of ['node' => ClassNode, 'imports' => array]