class PhpDocumentorParser implements PhpDocParserInterface (View source)

PhpDoc parser implementation using phpDocumentor library.

Parses PhpDoc comments and extracts type hints, version information, and other metadata.

Methods

parseDocComment(string|null $docComment)

No description

parseElementPhpDoc(DocCommentNode|null $docComment)

No description

Details

ParsedPhpDoc parseDocComment(string|null $docComment)

No description

Parameters

string|null $docComment

The PhpDoc comment text (including /* \/)

Return Value

ParsedPhpDoc

Parsed PhpDoc data, or empty object if parsing fails

ParsedPhpDoc parseElementPhpDoc(DocCommentNode|null $docComment)

No description

Parameters

DocCommentNode|null $docComment

The doc comment node from AST

Return Value

ParsedPhpDoc

Parsed and merged PhpDoc data