interface InterfaceNodeExtractorInterface (View source)

Extracts interface AST nodes from PHP stub code.

Methods

array
extractAllInterfaces(string $stubCode)

No description

array
extractAllInterfacesWithImports(string $stubCode)

Extract all interface nodes with their import context.

Details

array extractAllInterfaces(string $stubCode)

No description

Parameters

string $stubCode

Return Value

array

Array of interface nodes with namespace set

array extractAllInterfacesWithImports(string $stubCode)

Extract all interface nodes with their import context.

Parameters

string $stubCode

Return Value

array

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