public function Serializer::__construct in Zircon Profile 8.0
Same name in this branch
- 8.0 vendor/symfony/serializer/Serializer.php \Symfony\Component\Serializer\Serializer::__construct()
- 8.0 vendor/phpdocumentor/reflection-docblock/src/phpDocumentor/Reflection/DocBlock/Serializer.php \phpDocumentor\Reflection\DocBlock\Serializer::__construct()
- 8.0 core/modules/rest/src/Plugin/views/style/Serializer.php \Drupal\rest\Plugin\views\style\Serializer::__construct()
Same name and namespace in other branches
- 8 vendor/phpdocumentor/reflection-docblock/src/phpDocumentor/Reflection/DocBlock/Serializer.php \phpDocumentor\Reflection\DocBlock\Serializer::__construct()
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.
File
- vendor/
phpdocumentor/ reflection-docblock/ src/ phpDocumentor/ Reflection/ DocBlock/ Serializer.php, line 49
Class
- Serializer
- Serializes a DocBlock instance.
Namespace
phpDocumentor\Reflection\DocBlockCode
public function __construct($indent = 0, $indentString = ' ', $indentFirstLine = true, $lineLength = null) {
$this
->setIndentationString($indentString);
$this
->setIndent($indent);
$this
->setIsFirstLineIndented($indentFirstLine);
$this
->setLineLength($lineLength);
}