php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
PhpToken Class Reference
Inheritance diagram for PhpToken:
Stringable

Public Member Functions

 __construct (int $id, string $text, int $line=-1, int $pos=-1)
 
 is ($kind)
 
 isIgnorable ()
 
 getTokenName ()
 
 __toString ()
 

Static Public Member Functions

static tokenize (string $code, int $flags=0)
 

Data Fields

int $id
 
string $text
 
int $line
 
int $pos
 

Detailed Description

Definition at line 15 of file tokenizer.stub.php.

Constructor & Destructor Documentation

◆ __construct()

PhpToken::__construct ( int $id,
string $text,
int $line = -1,
int $pos = -1 )
final

Definition at line 25 of file tokenizer.stub.php.

Member Function Documentation

◆ __toString()

PhpToken::__toString ( )

Implements Stringable.

Definition at line 34 of file tokenizer.stub.php.

◆ getTokenName()

PhpToken::getTokenName ( )

Definition at line 32 of file tokenizer.stub.php.

◆ is()

PhpToken::is ( $kind)
Parameters
int | string | array$kind

Definition at line 28 of file tokenizer.stub.php.

◆ isIgnorable()

PhpToken::isIgnorable ( )

Definition at line 30 of file tokenizer.stub.php.

◆ tokenize()

static PhpToken::tokenize ( string $code,
int $flags = 0 )
static
Returns
static[]

Definition at line 23 of file tokenizer.stub.php.

Field Documentation

◆ $id

int PhpToken::$id

Definition at line 17 of file tokenizer.stub.php.

◆ $line

int PhpToken::$line

Definition at line 19 of file tokenizer.stub.php.

◆ $pos

int PhpToken::$pos

Definition at line 20 of file tokenizer.stub.php.

◆ $text

string PhpToken::$text

Definition at line 18 of file tokenizer.stub.php.


The documentation for this class was generated from the following file: