function TokenPolyfill::__construct
Create a Token with the given ID and text, as well optional line and position information.
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ Internal/ TokenPolyfill.php, line 42
Class
- TokenPolyfill
- This is a polyfill for the PhpToken class introduced in PHP 8.0. We do not actually polyfill PhpToken, because composer might end up picking a different polyfill implementation, which does not meet our requirements.
Namespace
PhpParser\InternalCode
public final function __construct(int $id, string $text, int $line = -1, int $pos = -1) {
$this->id = $id;
$this->text = $text;
$this->line = $line;
$this->pos = $pos;
}