Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Comment.php

function Comment::__construct

Same name in this branch
  1. 11.1.x vendor/egulias/email-validator/src/Parser/Comment.php \Egulias\EmailValidator\Parser\Comment::__construct()
  2. 11.1.x vendor/egulias/email-validator/src/Warning/Comment.php \Egulias\EmailValidator\Warning\Comment::__construct()
  3. 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

Comment

Namespace

PhpParser

Code

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;
}
RSS feed
Powered by Drupal