final class StatementList
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.

A listing of statements that a reader can narrow down on the page.

Every listing in the report is the same component, doc-ui's listing with its facets: the rows, and above them the facets the rows can be narrowed by — what the statements do, how far the analysis got, and how much attention they need — each showing how many rows it would keep. A facet that every row shares is not offered, since choosing it would change nothing.

Methods§

public function __construct(
    ?HtmlText $text = null,
    ?StatementRow $row = null,
    ?Palette $palette = null,
)

Wires the listing to the row and text rendering it is written with.

Parameters

$text?HtmlText
$row?StatementRow
$palette?Palette
Calls 3
public function group(
    string $facet,
    array<string, int> $counts,
    callable(string): string $role,
    callable(string): string|null $label = null,
): string

One facet, as a chip per value with how many rows it keeps.

Parameters

$facetstring
$countsarray<string, int>
$rolecallable(string): string
$labelcallable(string): string|null

Returns

string
Test cases 1
Called from 3
Calls 3

Private surface 3§

Implementation details, listed for orientation only.

private HtmlText $text
private StatementRow $row
private Palette $palette

Test cases 17§

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

Dedicated tests 4
Other tests reaching this symbol 13

Relations§

Instantiated in 6
Method calls 11
Type declarations 12