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

One class: the statements each of its methods issues.

This is the page opened before a class is refactored. The statements are listed under the method that issues them, in the order the methods are written, so a reader can see the shape of what each method does to the database before changing how it does it.

Methods§

public function __construct(?HtmlText $text = null, ?StatementList $list = null)

Wires the page to the rendering it is written with.

Parameters

Calls 2
public function render(ReportSite $site, string $class): string
public function tables(ReportSite $site, list<CatalogEntry> $entries): string

The tables a set of statements names, most named first.

Parameters

$siteReportSite
$entrieslist<CatalogEntry>

Returns

string
Test cases 1
Called from 1
Calls 5
public function methods(list<CatalogEntry> $entries): array<string, list<CatalogEntry>>

The statements of each function among a set, in the order the functions are written.

Parameters

$entrieslist<CatalogEntry>

Returns

array<string, list<CatalogEntry>>
Test cases 1
Called from 2
Calls 1
public function sections(
    ReportSite $site,
    string $page,
    array<string, list<CatalogEntry>> $functions,
): string

One section per function, each listing what it issues.

Parameters

$siteReportSite
$pagestring
$functionsarray<string, list<CatalogEntry>>

Returns

string
Test cases 1
Called from 1
Calls 6
public function context(
    ReportSite $site,
    string $class,
): list<array{string, list<array{string, string, int|null, bool}>, string|null}>

What the page is best left from: its methods, and the other classes of the namespace.

Parameters

$siteReportSite
$classstring

Returns

list<array{string, list<array{string, string, int|null, bool}>, string|null}>
Test cases 1
Called from 1
Calls 6
public function anchors(
    ReportSite $site,
    list<CatalogEntry> $entries,
): list<array{string, string}>

The sections of the page, for the navigation.

Parameters

$siteReportSite
$entrieslist<CatalogEntry>

Returns

list<array{string, string}>
Test cases 1
Called from 1
Calls 4

Private surface 2§

Implementation details, listed for orientation only.

private HtmlText $text
private StatementList $list

Test cases 9§

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 2

Relations§

Instantiated in 1
Method calls 2