final class OperatorDomain
    implements ValueDomain

Scanner operator runs with explicit fixed-token and comment boundaries.

Methods§

public function __construct(
    private non-empty-string $characters,
    private non-empty-string $nonSql,
    private list<string> $fixed,
    private list<string> $comments,
)

Parameters

$charactersnon-empty-string
$nonSqlnon-empty-stringCharacters permitting a trailing plus or minus
$fixedlist<string>
$commentslist<string>
public function choose(Closure(positive-int): int $choose): string

Parameters

$chooseClosure(positive-int): int

Returns

string

Throws

InvalidArgumentException When the declared alphabet cannot produce a safe operator
Test cases 1
Calls 6
public function match(string $value, int $offset = 0): list<int>

Parameters

$valuestring
$offsetint

Returns

list<int>
Test cases 1
Calls 5

Private surface 4§

Implementation details, listed for orientation only.

private non-empty-string $characters
private non-empty-string $nonSql
private list<string> $fixed
private list<string> $comments

Test 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

Relations§

Instantiated in 1