class Position

Source position (line, column, byte offset) within a template.

Methods

__construct(int $line = 1, int $column = 1, int $offset = 0)

No description

advance(string $str)

Returns a new position advanced by the length of the given string.

string
__toString()

No description

Details

at line 19
__construct(int $line = 1, int $column = 1, int $offset = 0)

No description

Parameters

int $line
int $column
int $offset

at line 30
Position advance(string $str)

Returns a new position advanced by the length of the given string.

Parameters

string $str

Return Value

Position

at line 48
string __toString()

No description

Return Value

string