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

One file: the statements each function in it issues.

A file is read top to bottom, so its statements are listed under the functions that issue them in the order the functions are written, with top-level code first. A method's section says which class it belongs to and leads to that class's page.

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 problems(ReportSite $site, string $file): string

Why the file could not be analyzed, beside the source that caused it.

Parameters

$siteReportSite
$filestring

Returns

string
Test cases 1
Called from 1
Calls 2
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 functions(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 $file,
    array<string, list<CatalogEntry>> $functions,
): string

One section per function, each listing what it issues.

Parameters

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

Returns

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

What the page is best left from: its functions, and the other files of the directory.

Parameters

$siteReportSite
$filestring

Returns

list<array{string, list<array{string, string, int|null, bool}>, string|null}>
Test cases 3
Called from 1
Calls 8
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 13§

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 2

Relations§

Instantiated in 1
Method calls 2