__construct()
__toString()
export()
getLongDescription()
getShortDescription()
getTags()
getTagsByName()
hasTag()
cleanInput()
parseTags()
splitDocBlock()
$long_description
$short_description
$tags
Parses the DocBlock for any structure.
| author | Mike van Riel |
|---|---|
| license | MIT |
| link | http://phpdoc.org |
__construct(string | \Reflector $docblock)
string\ReflectorA docblock comment (including asterisks) or reflector supporting the getDocComment method.
__toString() : string
stringexport() : string
| todo | determine the exact format as used by PHP Reflection and implement it. |
|---|
stringgetLongDescription() : \phpDocumentor\Reflection\DocBlock\LongDescription
getShortDescription() : string
stringgetTags() : \phpDocumentor\Reflection\DocBlock\Tag[]
getTagsByName(string $name) : \phpDocumentor\Reflection\DocBlock_Tag[]
stringString to search by.
\phpDocumentor\Reflection\DocBlock_Tag[]hasTag(string $name) : bool
stringTag name to check for.
boolcleanInput(string $comment) : string
stringString containing the comment text.
stringparseTags(string $tags) : void
stringTag block to parse.
splitDocBlock(string $comment) : \string[]
| author | RichardJ Special thanks to RichardJ for the regex responsible for the split/ |
|---|
stringComment to split into the sub-parts.
\string[]containing the short-, long description and an element containing the tags.$long_description : \phpDocumentor\Reflection\DocBlock\LongDescription
$short_description : string