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

One statement as a row of a listing.

A row is a doc-ui listing row. A listing is for scanning, so a row shows the statement itself first — the SQL in doc-ui's multiline code block — and then where it is issued, with every place it names linked to the page for it. What the analyzer thinks of the statement is shown only when it is not the ordinary case: a resolved statement with nothing reported carries no state chips at all, so the ones that do stand out.

Methods§

public function __construct(
    ?HtmlText $text = null,
    ?SqlHighlighter $sql = null,
    ?Palette $palette = null,
    ?SqlFormatter $formatter = null,
)

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

Parameters

$text?HtmlText
$sql?SqlHighlighter
$palette?Palette
$formatter?SqlFormatter
Calls 4
public function render(
    ReportSite $site,
    string $page,
    CatalogEntry $entry,
    list<string> $omit = [],
): string

The row, with its links written relative to the page it is on.

Parameters

$siteReportSite
$pagestring
$entryCatalogEntry
$omitlist<string>The facts the listing already states, out of `function`, `file` and `tables`

Returns

string
Test cases 1
Called from 1
Calls 9
public function attributes(CatalogEntry $entry): string
public function meta(
    ReportSite $site,
    string $prefix,
    CatalogEntry $entry,
    list<string> $omit,
): string

Private surface 4§

Implementation details, listed for orientation only.

private HtmlText $text
private SqlHighlighter $sql
private Palette $palette
private SqlFormatter $formatter

Test cases 21§

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

Dedicated tests 7
Other tests reaching this symbol 14

Relations§

Instantiated in 1
Method calls 1
Type declarations 2