Class to represent and parse a docblock (a.k.a. doc comment)
These comments always are delimeted by /**
and *\/
.
DocBlocks are treated as GitHub Flavored Markdown, and standard
JavaDoc style tags are supported, such as @param
, @see
, and
@return
.
namespace Facebook\HHAPIDoc\DocBlock;
final class DocBlock {...}
::nullable(?string $comment): ?this
->__construct(string $rawDocBlock)
->getDescription(): ?string
->getParameterInfo(): dict<string, ParameterInfo>
@param
tags->getReturnInfo(): vec<ReturnInfo>
->getSummary(): ?string
->getTagsByName(string $name): vec<string>
::typeToTypes(?string $type): vec<string>