implements |
JsonSerializable |
---|
Methods | ||
---|---|---|
public
|
__construct(
string $text,
int $startLine = -1,
int $startFilePos = -1,
int $startTokenPos = -1,
int $endLine = -1,
int $endFilePos = -1,
int $endTokenPos = -1,
)
|
# |
public
|
getText(): string
|
# |
public
|
getStartLine(): int
|
# |
public
|
getStartFilePos(): int
|
# |
public
|
getStartTokenPos(): int
|
# |
public
|
getEndLine(): int
|
# |
public
|
getEndFilePos(): int
|
# |
public
|
getEndTokenPos(): int
|
# |
public
|
__toString(): string
|
# |
public
|
getReformattedText(): string
|
# |
public
|
jsonSerialize(): array{nodeType: string, text: mixed, line: mixed, filePos: mixed}
|
# |
Properties | |||
---|---|---|---|
protected
|
string
|
$text
|
# |
protected
|
int
|
$startLine
|
# |
protected
|
int
|
$startFilePos
|
# |
protected
|
int
|
$startTokenPos
|
# |
protected
|
int
|
$endLine
|
# |
protected
|
int
|
$endFilePos
|
# |
protected
|
int
|
$endTokenPos
|
# |