function Comment::__construct
Same name in this branch
- 11.1.x vendor/egulias/email-validator/src/Parser/Comment.php \Egulias\EmailValidator\Parser\Comment::__construct()
- 11.1.x vendor/egulias/email-validator/src/Warning/Comment.php \Egulias\EmailValidator\Warning\Comment::__construct()
- 11.1.x vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/Comment.php \SlevomatCodingStandard\Helpers\Comment::__construct()
Constructs a comment node.
Parameters
string $text Comment text (including comment delimiters like /*):
int $startLine Line number the comment started on:
int $startFilePos File offset the comment started on:
int $startTokenPos Token offset the comment started on:
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ Comment.php, line 22
Class
Namespace
PhpParserCode
public function __construct(string $text, int $startLine = -1, int $startFilePos = -1, int $startTokenPos = -1, int $endLine = -1, int $endFilePos = -1, int $endTokenPos = -1) {
$this->text = $text;
$this->startLine = $startLine;
$this->startFilePos = $startFilePos;
$this->startTokenPos = $startTokenPos;
$this->endLine = $endLine;
$this->endFilePos = $endFilePos;
$this->endTokenPos = $endTokenPos;
}