Methods |
public
|
getTokenType(): int
Get the Token's type
|
#
|
public
|
getName(): string
Get the Token's name
|
#
|
public
|
getArguments(): array
Get the Token's arguments
Get the Token's arguments
|
#
|
public
|
setArguments(array $arguments): $this
Set the Token's arguments
Set the Token's arguments
|
#
|
public
|
getValue(): string
A helper method that returns a string corresponding to the Token's value
(or its arguments concatenated)
A helper method that returns a string corresponding to the Token's value
(or its arguments concatenated)
|
#
|
public
|
isMultiLine(): bool
Check if this Token spawns across multiple lines
Check if this Token spawns across multiple lines
Implemented by
|
#
|
public
|
getLineBreaks(): int[]
Get the line breaks
|
#
|
public
|
setLineBreaks(int[] $lineBreaks): $this
Set the line breaks
Parameters
$lineBreaks |
Array of integers
|
Implemented by
|
#
|
public
|
addLineBreak(integer $lineBreak): $this
|
#
|
public
|
__toString(): string
Get a string representation of the Token
Get a string representation of the Token
|
#
|
public
|
toArray(): array
Get the array representation of the Token
Get the array representation of the Token
|
#
|