final class Enumerator
Restricted visibility: declared "@visibility parent" and "@visibility Deriver\Deriver\Publication". Code outside that scope must not name this declaration.

Enumerates a shared choice DAG while retaining its entire unvisited frontier.

Methods§

public function __construct(Term $value)

Starts enumeration without flattening any choices.

Parameters

$valueTerm
public function hasRemaining(): bool
public function remainder(array{Term, array<string, bool|string>} $current): Term

Parameters

$currentarray{Term, array<string, bool|string>}

Returns

Test cases 1
Called from 1
Calls 3

Private surface 1§

Implementation details, listed for orientation only.

private list<array{Term, array<string, bool|string>}> $pending

Test cases 3§

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

Dedicated tests 3

Relations§

Instantiated in 3
Method calls 5