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

Resolves MySQL rule names across grammar releases.

Methods§

public function startSymbolFor(string|null $requested): string

Answers which of this grammar's rules a requested start rule is grown from.

MySQL renamed its top-level rules across releases, so the name a caller asks for may not be the name this release declares. A request the grammar knows is taken as it stands; otherwise the rule that release calls the same thing is used, and a request nothing matches is handed back for the derivation to report.

Parameters

$requestedstring|nullRule the caller asked for, or null for the grammar's own entry point

Returns

string Rule this grammar declares
Test cases 7
Called from 1

Private surface 1§

Implementation details, listed for orientation only.

private Grammar $grammar

Test cases 12§

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

Dedicated tests 7
Other tests reaching this symbol 5

Relations§

Instantiated in 1
Method calls 1