final class VersionedLexemeGenerator
    implements LexemeGenerator

Binds one exact release at construction without invoking unselected definitions.

Properties§

public ?VersionCase $selected

The one reviewed case selected at construction, or null for an undeclared release.

Methods§

public function __construct(string $version, VersionCase ...$cases)

Selects exactly one reviewed case at construction.

Parameters

$versionstring
$casesVersionCase

Throws

RuntimeException When multiple cases declare the same release
Test cases 2
Calls 2
public function generate(LexemeInput $input): ?LexemeCandidates

Delegates only to the selected case; an undeclared release remains non-applicable.

Parameters

Test cases 1
Calls 2

Test cases 22§

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 20

Relations§

Instantiated in 10