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

Finds the bind parameters of a statement, including one still holding gaps.

Constants§

public const HOLE_MARKER = 'sql_catalog_gap'

The stand-in gaps are rendered as, chosen to lex as one ordinary word.

Methods§

public function __construct(?SqlLexer $lexer = null)

Builds a scanner over the shared lexer.

Parameters

$lexer?SqlLexer
Calls 1
public function nameOf(string $token): ?string

The name a parameter binds by, or null when it binds by position.

Parameters

$tokenstring

Returns

?string
Test cases 1
Called from 1
Calls 3

Private surface 1§

Implementation details, listed for orientation only.

private SqlLexer $lexer

Test cases 15§

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 9

Relations§

Instantiated in 1
Method calls 1
Constant reads 5
Type declarations 2