martin-helmich/typo3-typoscript-parser

View on GitHub
src/Parser/AST/MultilineComment.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

declare(strict_types=1);

namespace Helmich\TypoScriptParser\Parser\AST;

final class MultilineComment extends Statement
{
    public string $comment;

    public function __construct(string $comment, int $sourceLine)
    {
        parent::__construct($sourceLine);
        $this->comment = preg_replace('/[\0\r\x0B\t]/', '', $comment);
    }
}