$warnings
$warnings : array<mixed,string>
Warning messages.
Refactors a file to contain a (correct) file-level DocBlock.
If there is no file-level DocBlock, the first DocBlock is used as a template to create one.
If a file-level DocBlock exists, this one and the following the following first element-level DocBlock are checked for correct content.
If no DocBlock exists at all, a default is created. If you want your own defaults, extend this class and overwrite __construct().
_getFileLevelDocBlock(array<mixed,\phpDocumentor\Reflection\DocBlock\Tag> $tags) : \phpDocumentor\Reflection\DocBlock
Builds a default file-level DocBlock.
array<mixed,\phpDocumentor\Reflection\DocBlock\Tag> | $tags | Tags to add. |
A file-level DocBlock.
_getDocBlock(\phpDocumentor\Reflection\DocBlock|string $descriptions, array<mixed,\phpDocumentor\Reflection\DocBlock\Tag> $tags) : \phpDocumentor\Reflection\DocBlock
Builds a DocBlock.
\phpDocumentor\Reflection\DocBlock|string | $descriptions | The DocBlock summary and description or the DocBlock to pull those from. |
array<mixed,\phpDocumentor\Reflection\DocBlock\Tag> | $tags | Tags to add. |
A DocBlock.
_processDocBlockText(\phpDocumentor\Reflection\DocBlock $block, string $which)
Processes the summary and description of an existing DocBlock.
Parses any information out of the "other" block that might be required later.
\phpDocumentor\Reflection\DocBlock | $block | A DocBlock. |
string | $which | Which DocBlock to verify, either 'file' or 'class'. |
_processDocBlock(\phpDocumentor\Reflection\DocBlock $block)
Processes an existing DocBlock.
Parses any information out of the block that might be required later, and checks for different tag contents if processing the second block.
\phpDocumentor\Reflection\DocBlock | $block | A DocBlock. |