Token
Less than 1 minute
Token
Wrapper around a token produced by token_get_all().
class TokenProperties
type
Token identifier, usually one of the T_* constants.
public int $typeType: int
value
Raw token text value.
public string $valueType: string
line
Source line number where the token was found.
public int $lineType: int
Methods
__construct
Token constructor.
public __construct(array $tokenData): voidParameters
| Parameter | Type | Description |
|---|---|---|
$tokenData | array |
getName
Returns the PHP token constant name for this token type.
public getName(): stringReturns: string
Generated by Hazaar API Doc Generator on Fri, 04 Sep 2026 23:32:16 +0000