interface MultiEntityStubParserInterface (View source)

Interface for parsers that extract and parse multiple entities from stub content.

Unlike single-entity parsers, these parsers process entire file content and extract all entities of their type (e.g., all classes, all functions, etc.).

Methods

array
extractAndParseAll(string $stubContent)

Extract and parse all entities of this type from stub content.

Details

array extractAndParseAll(string $stubContent)

Extract and parse all entities of this type from stub content.

Parameters

string $stubContent

The PHP stub file content to parse

Return Value

array

Array of parsed entities (PHPClass, PHPFunction, etc.). Returns empty array if no entities found.