implements |
Stringable |
---|
The PhpToken class
Methods | ||
---|---|---|
final
public
|
__construct(int $id, string $text, int $line = -1, int $pos = -1)
|
# |
public
|
getTokenName(): string|null
|
# |
public
|
is(int|string|array<int|string> $kind): bool
|
# |
public
|
isIgnorable(): bool
|
# |
public
|
__toString(): string
|
# |
public
static
|
tokenize(string $code, int $flags = 0): static[]
|
# |
Properties | |||
---|---|---|---|
public
|
int
|
$id
|
# |
public
|
string
|
$text
|
# |
public
|
int
|
$line
|
# |
public
|
int
|
$pos
|
# |