You are here

public function Serializer::__construct in Zircon Profile 8.0

Same name in this branch
  1. 8.0 vendor/symfony/serializer/Serializer.php \Symfony\Component\Serializer\Serializer::__construct()
  2. 8.0 vendor/phpdocumentor/reflection-docblock/src/phpDocumentor/Reflection/DocBlock/Serializer.php \phpDocumentor\Reflection\DocBlock\Serializer::__construct()
  3. 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
  1. 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\DocBlock

Code

public function __construct($indent = 0, $indentString = ' ', $indentFirstLine = true, $lineLength = null) {
  $this
    ->setIndentationString($indentString);
  $this
    ->setIndent($indent);
  $this
    ->setIsFirstLineIndented($indentFirstLine);
  $this
    ->setLineLength($lineLength);
}