PhpParser\Comment::__construct PHP Method

__construct() public method

Constructs a comment node.
public __construct ( string $text, integer $startLine, integer $startFilePos )
$text string Comment text (including comment delimiters like /*)
$startLine integer Line number the comment started on
$startFilePos integer File offset the comment started on
    public function __construct($text, $startLine = -1, $startFilePos = -1)
    {
        $this->text = $text;
        $this->line = $startLine;
        $this->filePos = $startFilePos;
    }