PhpParser\PrettyPrinterAbstract::__construct PHP Method

__construct() public method

Supported options: * bool $shortArraySyntax = false: Whether to use [] instead of array() as the default array syntax, if the node does not specify a format.
public __construct ( array $options = [] )
$options array Dictionary of formatting options
    public function __construct(array $options = [])
    {
        $this->noIndentToken = '_NO_INDENT_' . mt_rand();
        $this->docStringEndToken = '_DOC_STRING_END_' . mt_rand();
        $defaultOptions = ['shortArraySyntax' => false];
        $this->options = $options + $defaultOptions;
    }