final class Scope

Carries the nearest declarations while descending through a planned subtree.

Properties§

public array<string, RulePlan> $rules = []
public array<string, LexemeConstraint> $lexemes = []

Methods§

public function __construct(
    public array<string, RulePlan> $rules = [],
    public array<string, LexemeConstraint> $lexemes = [],
)

Parameters

$rulesarray<string, RulePlan>
$lexemesarray<string, LexemeConstraint>
public function enter(RulePlan $plan): self

More specific subtree declarations shadow inherited defaults.

Parameters

Returns

self
Test cases 2
Calls 3

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 3
Type declarations 2