You are here

public function PHP_Token::__construct in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/phpunit/php-token-stream/src/Token.php \PHP_Token::__construct()

Constructor.

Parameters

string $text:

integer $line:

PHP_Token_Stream $tokenStream:

integer $id:

File

vendor/phpunit/php-token-stream/src/Token.php, line 50

Class

PHP_Token
A PHP token.

Code

public function __construct($text, $line, PHP_Token_Stream $tokenStream, $id) {
  $this->text = $text;
  $this->line = $line;
  $this->tokenStream = $tokenStream;
  $this->id = $id;
}