final class IntegerLexemeGenerator
    implements LexemeGenerator

An unsigned decimal scanner domain whose inclusive bounds do not depend on PHP's integer width.

Methods§

public function __construct(
    private string $terminal,
    private string $minimum,
    private ?string $maximum,
    private non-empty-list<string> $defaults,
    private string $definition,
    private bool $digitSeparators = false,
)

Binds the source-defined magnitude interval and bounded default representatives. A null upper bound supports scanners that classify all larger integers into another token family.

Parameters

$terminalstring
$minimumstring
$maximum?string
$defaultsnon-empty-list<string>
$definitionstring
$digitSeparatorsbool

Private surface 6§

Implementation details, listed for orientation only.

private string $terminal
private string $minimum
private ?string $maximum
private non-empty-list<string> $defaults
private string $definition
private bool $digitSeparators = false

Test cases 24§

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

Dedicated tests 6
Other tests reaching this symbol 18

Relations§

Instantiated in 21
Method calls 2