final class RelationCursor
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.

Tracks the unread position of one DBML relation statement.

Properties§

public string $source
public int $offset = 0

Methods§

public function __construct(public string $source, public int $offset = 0)

Opens a statement at its first character.

Parameters

$sourcestring
$offsetint
public function peek(): ?string

Reads the next character without advancing the cursor.

Returns

?string
Test cases 6
Called from 13

Private surface 1§

Implementation details, listed for orientation only.

private const IDENTIFIER = '/\G(?:`([^`]+)`|"([^"]+)"|([A-Za-z_][A-Za-z0-9_$]*))/'

Test cases 57§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 6
Other tests reaching this symbol 51

Relations§

Instantiated in 2
Method calls 30
Type declarations 4