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

One statement, with everything the analysis established about it.

The statement comes first and largest, laid out a clause per line, because it is what the reader came for. Around it are the facts that decide what to do about it: where it is issued and through what, what it names, what is bound to it, and what the analyzer could not settle. The other statements of the same function and on the same table are listed last, so the reading can continue without going back.

Constants§

public const RELATED = 8

How many related statements are listed before pointing at their own page.

public const LABEL = 40

How much of a statement the navigation beside the page shows of it.

Methods§

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

Wires the page to the rendering it is written with.

Parameters

$text?HtmlText
$sql?SqlHighlighter
$formatter?SqlFormatter
$list?StatementList
$palette?Palette
Calls 5
public function title(CatalogEntry $entry): string
public function where(ReportSite $site, CatalogEntry $entry): string
public function body(CatalogEntry $entry, ?SqlFormatter $formatter = null): string

The statement itself, laid out for reading, or the call it was not read from.

The copy button takes what the block shows, so what is copied is what was read: expanded SQL, with named gaps where PHP variables are known.

Parameters

$entryCatalogEntry
$formatter?SqlFormatter

Returns

string
Test cases 3
Called from 1
Calls 6
public function caveats(CatalogEntry $entry): string
public function values(CatalogEntry $entry): string

The bind parameters of the statement, with what each is bound to.

Parameters

Returns

string
Test cases 1
Called from 1
Calls 1
public function valueRow(Placeholder $placeholder): string
public function openValue(list<string> $origins): string

How a value that did not resolve to a set of alternatives is described.

Parameters

$originslist<string>

Returns

string
Test cases 1
Called from 1
Calls 1
public function findings(CatalogEntry $entry): string
public function context(
    ReportSite $site,
    CatalogEntry $entry,
): list<array{string, list<array{string, string, int|null, bool}>, string|null}>
public function related(ReportSite $site, string $page, CatalogEntry $entry): string

Private surface 5§

Implementation details, listed for orientation only.

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

Test cases 23§

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

Dedicated tests 21
Other tests reaching this symbol 2

Relations§

Instantiated in 1
Method calls 2