final class ValueLexemeGenerator
    implements LexemeGenerator

Constructs lexical values from a domain; only caller-supplied spellings need recognition.

Methods§

public function __construct(
    private string $terminal,
    private ValueDomain $domain,
    private non-empty-list<string> $defaults,
    private string $kind,
    private string $definition,
)

Parameters

$terminalstring
$domainValueDomain
$defaultsnon-empty-list<string>Valid representatives when the plan does not specify a value
$kindstring
$definitionstring

Throws

InvalidArgumentException When a representative does not belong to the declaration
Test cases 2
Calls 4

Private surface 5§

Implementation details, listed for orientation only.

private string $terminal
private ValueDomain $domain
private non-empty-list<string> $defaults
private string $kind
private string $definition

Test cases 42§

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 40

Relations§

Instantiated in 48
Method calls 2