DocblockReflection
extends AbstractReflection
in package
Docblock reflection code class
Tags
Table of Contents
Methods
- parse() : DocblockGenerator
- Method to parse a docblock
- parseGenericTag() : void
- Parse any other tag line and add it to the docblock
- parseParamTag() : void
- Parse a single "param" tag line and add it to the docblock
- parseReturnTag() : void
- Parse a single "return" tag line and set it on the docblock
Methods
parse()
Method to parse a docblock
public
static parse(mixed $code[, int|null $forceIndent = null ]) : DocblockGenerator
Parameters
- $code : mixed
- $forceIndent : int|null = null
Tags
Return values
DocblockGeneratorparseGenericTag()
Parse any other tag line and add it to the docblock
private
static parseGenericTag(DocblockGenerator $docblock, string $value) : void
Parameters
- $docblock : DocblockGenerator
- $value : string
parseParamTag()
Parse a single "param" tag line and add it to the docblock
private
static parseParamTag(DocblockGenerator $docblock, string $value) : void
Parameters
- $docblock : DocblockGenerator
- $value : string
parseReturnTag()
Parse a single "return" tag line and set it on the docblock
private
static parseReturnTag(DocblockGenerator $docblock, string $value) : void
Parameters
- $docblock : DocblockGenerator
- $value : string