Converts a DocBlock back from an object to a complete DocComment including Asterisks.
◆ __construct()
phpDocumentor\Reflection\DocBlock\Serializer::__construct |
( |
int |
$indent = 0 , |
|
|
string |
$indentString = ' ' , |
|
|
bool |
$indentFirstLine = true , |
|
|
?int |
$lineLength = null , |
|
|
?Formatter |
$tagFormatter = null |
|
) |
| |
Create a Serializer instance.
- Parameters
-
int | $indent | The number of times the indent string is repeated. |
string | $indentString | The string to indent the comment with. |
bool | $indentFirstLine | Whether to indent the first line. |
int | null | $lineLength | The max length of a line or NULL to disable line wrapping. |
Formatter | $tagFormatter | A custom tag formatter, defaults to PassthroughFormatter. |
◆ getDocComment()
phpDocumentor\Reflection\DocBlock\Serializer::getDocComment |
( |
DocBlock |
$docblock | ) |
|
Generate a DocBlock comment.
- Parameters
-
- Returns
- string The serialized doc block.
◆ $indent
phpDocumentor\Reflection\DocBlock\Serializer::$indent = 0 |
|
protected |
◆ $indentString
phpDocumentor\Reflection\DocBlock\Serializer::$indentString = ' ' |
|
protected |
◆ $isFirstLineIndented
phpDocumentor\Reflection\DocBlock\Serializer::$isFirstLineIndented = true |
|
protected |
◆ $lineLength
phpDocumentor\Reflection\DocBlock\Serializer::$lineLength |
|
protected |
◆ $tagFormatter
phpDocumentor\Reflection\DocBlock\Serializer::$tagFormatter |
|
protected |
The documentation for this class was generated from the following file: