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

Analyzes the complete language independently of schema-dependent binding.

Methods§

public function __construct(Dialect $dialect, ?string $grammarVersion = null)

Selects the language and its corresponding complete value model.

Parameters

$dialectDialect
$grammarVersion?string
Calls 3
public function analyze(string $sql): Statement

Parses and lowers SQL, retaining only the independent statement data and its comments.

Parameters

$sqlstring

Returns

Throws

AnalysisException When SQL is not in the selected language
Test cases 2
Called from 1
Calls 3

Private surface 2§

Implementation details, listed for orientation only.

private DialectParser $parser
private ValueReader $values

Test cases 9§

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

Dedicated tests 2
Other tests reaching this symbol 7

Relations§

Instantiated in 1
Method calls 1
Type declarations 1