final class UnitCollector

Gathers the units selected by each declared scope and rejects inconsistent selections.

A unit shared by two scopes must have the same text in both, and no scope may select an ancestor of a unit another scope of the same document selected.

Properties§

public array<string, SourceUnit> $units = []
public array<string, list<string>> $scopes = []

Methods§

public function collect(Source $source, list<Unit> $selected): void

Test cases 19§

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

Dedicated tests 11
Other tests reaching this symbol 8

Relations§

Instantiated in 1
Method calls 2