classAnalyzer
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
$dialect | Dialect | |
$grammarVersion | ?string |
Calls 3
- new DialectParser line 28
- method-call Dialect::platform() line 29
- method-call DialectParser::version() line 29
public function analyze(string $sql): StatementParses and lowers SQL, retaining only the independent statement data and its comments.
Parameters
$sql | string |
Returns
Throws
AnalysisException When SQL is not in the selected languageTest cases 2
Called from 1
Calls 3
- method-call DialectParser::parse() line 40
- new AnalysisException line 42
- method-call ValueReader::statement() line 45
Private surface 2§
Implementation details, listed for orientation only.
private DialectParser $parserprivate ValueReader $valuesTest 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
ValueReaderTestcallsAnalysisExceptionTestcallsSemanticsTestcallsPlatformTestcallsElementTestcallsStatementTestcallsWriterTestcalls