classOverviewPage
final class OverviewPage
The page a reader opens first: the routes to a statement, and what needs looking at.
A reader comes to the catalog with a question — what touches this table, what does this class issue, where is SQL built from values the program does not control — and the overview is laid out as those routes rather than as a summary of counts. Every figure on it is a link to the statements it counts, so a number is never the end of a reading.
Constants§
public const TOP = 6How many entries a route shows before pointing at its own page.
Methods§
public function render(ReportSite $site): stringThe body of the overview.
Parameters
$site | ReportSite |
Returns
stringTest cases 2
Called from 1
Calls 8
- method-call OverviewPage::facts() line 54
- method-call OverviewPage::tableRoute() line 55
- method-call OverviewPage::namespaceRoute() line 55
- method-call OverviewPage::fileRoute() line 56
- method-call OverviewPage::kindRoute() line 56
- method-call OverviewPage::attention() line 57
- method-call OverviewPage::coverage() line 58
- method-call OverviewPage::problems() line 59
public function facts(ReportSite $site): stringWhat the catalog holds, as a row of figures each leading to the listing it counts.
Parameters
$site | ReportSite |
Returns
stringTest cases 1
Called from 1
Calls 12
- method-call ReportSite::index() line 67
- method-call ReportSite::statistics() line 69
- class-const ReportSite::STATEMENTS() line 69
- function-call
countline 70 - method-call ReportSite::tables() line 70
- class-const ReportSite::TABLES() line 70
- class-const ReportSite::NAMESPACES() line 71
- method-call ReportSite::files() line 72
- class-const ReportSite::FILES() line 72
- method-call HtmlText::escape() line 76
- method-call HtmlText::number() line 76
- method-call HtmlText::noun() line 77
public function tableRoute(ReportSite $site): stringThe route by table: what reads and writes each one.
Parameters
$site | ReportSite |
Returns
stringCalled from 1
Calls 12
- method-call ReportSite::index() line 88
- function-call
array_sliceline 90 - class-const OverviewPage::TOP() line 90
- method-call HtmlText::link() line 92
- method-call TableName::label() line 92
- new TableName line 92
- method-call ReportSite::tablePage() line 92
- method-call HtmlText::number() line 93
- function-call
countline 93 - method-call OverviewPage::route() line 97
- class-const ReportSite::TABLES() line 99
- method-call ReportSite::tables() line 100
public function namespaceRoute(ReportSite $site): stringThe route by namespace: what each class and function issues.
Parameters
$site | ReportSite |
Returns
stringTest cases 1
Called from 1
Calls 14
- method-call ReportSite::index() line 112
- function-call
uasortline 114 - function-call
countline 114 - function-call
array_sliceline 116 - class-const OverviewPage::TOP() line 116
- method-call HtmlText::link() line 117
- method-call ReportSite::classPage() line 117
- method-call HtmlText::plural() line 118
- function-call
array_mapline 121 - static-call Scope::of() line 122
- class-const ReportSite::STATEMENTS() line 122
- function-call
rawurlencodeline 122 - method-call OverviewPage::route() line 127
- class-const ReportSite::NAMESPACES() line 129
public function fileRoute(ReportSite $site): stringThe route by file: what is written where.
Parameters
$site | ReportSite |
Returns
stringTest cases 1
Called from 1
Calls 11
- method-call ReportSite::index() line 142
- function-call
uasortline 143 - function-call
countline 143 - function-call
array_sliceline 145 - class-const OverviewPage::TOP() line 145
- method-call HtmlText::link() line 146
- method-call ReportSite::filePage() line 146
- method-call HtmlText::plural() line 147
- method-call OverviewPage::route() line 150
- class-const ReportSite::FILES() line 152
- method-call ReportSite::files() line 153
public function kindRoute(ReportSite $site): stringThe route by what a statement does.
Parameters
$site | ReportSite |
Returns
stringTest cases 1
Called from 1
Calls 8
- method-call ReportSite::statistics() line 166
- method-call HtmlText::chipLink() line 167
- function-call
strtoupperline 167 - class-const ReportSite::STATEMENTS() line 167
- function-call
rawurlencodeline 167 - method-call Palette::kind() line 167
- method-call HtmlText::plural() line 168
- method-call OverviewPage::route() line 171
public function route(
string $label,
string $href,
int $count,
string $noun,
string $hint,
string $items,
): stringOne route, as a card: where it leads, what it is for, the entries most worth starting from, and the way to all of them.
Parameters
$label | string | |
$href | string | |
$count | int | |
$noun | string | |
$hint | string | |
$items | string |
Returns
stringTest cases 1
Called from 4
- method-call SqlCatalog\Reporter\Html\Page\OverviewPage::tableRoute() packages/sql-catalog/src/Reporter/Html/Page/OverviewPage.php:97
- method-call SqlCatalog\Reporter\Html\Page\OverviewPage::namespaceRoute() packages/sql-catalog/src/Reporter/Html/Page/OverviewPage.php:127
- method-call SqlCatalog\Reporter\Html\Page\OverviewPage::fileRoute() packages/sql-catalog/src/Reporter/Html/Page/OverviewPage.php:150
- method-call SqlCatalog\Reporter\Html\Page\OverviewPage::kindRoute() packages/sql-catalog/src/Reporter/Html/Page/OverviewPage.php:171
Calls 4
- method-call HtmlText::link() line 186
- method-call HtmlText::count() line 186
- method-call HtmlText::escape() line 187
- method-call HtmlText::plural() line 189
public function attention(ReportSite $site): stringWhat the analysis flagged, by rule and by the functions it flagged most.
Parameters
$site | ReportSite |
Returns
stringTest cases 1
Called from 1
Calls 14
- method-call ReportSite::index() line 197
- static-call FindingRule::from() line 203
- method-call HtmlText::link() line 204
- class-const ReportSite::FINDINGS() line 204
- method-call HtmlText::chip() line 205
- method-call Palette::severity() line 205
- method-call HtmlText::number() line 206
- function-call
countline 206 - method-call HtmlText::escape() line 207
- function-call
array_sliceline 210 - class-const OverviewPage::TOP() line 210
- static-call Scope::of() line 211
- method-call HtmlText::count() line 217
- method-call ReportSite::statistics() line 217
public function coverage(ReportSite $site): stringHow far the analysis got, as one meter whose every segment leads to the statements it counts.
Parameters
$site | ReportSite |
Returns
stringCalled from 1
Calls 12
- method-call ReportSite::statistics() line 231
- static-call Resolution::from() line 236
- method-call Palette::resolution() line 237
- class-const ReportSite::STATEMENTS() line 238
- function-call
rawurlencodeline 238 - method-call HtmlText::escape() line 240
- method-call Palette::bar() line 240
- method-call HtmlText::percent() line 240
- method-call HtmlText::chipLink() line 243
- method-call HtmlText::number() line 244
- method-call HtmlText::link() line 253
- method-call HtmlText::plural() line 253
public function problems(ReportSite $site): stringThe files that could not be read at all.
Parameters
$site | ReportSite |
Returns
stringTest cases 2
Called from 1
Calls 6
- method-call ReportSite::catalog() line 262
- method-call HtmlText::escape() line 269
- method-call HtmlText::link() line 270
- method-call ReportSite::filePage() line 270
- method-call HtmlText::count() line 275
- function-call
countline 275
Private surface 2§
Implementation details, listed for orientation only.
private HtmlText $textprivate Palette $paletteTest cases 14§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 12
OverviewPageTest::testAttentionListsRulesAndTheFunctionsFlaggedMostcallsOverviewPageTest::testCoverageLeadsFromEverySegmentToTheStatementsItCountscallsOverviewPageTest::testFactsLinkEachCountToItsRoutecallsOverviewPageTest::testFileRouteListsTheFilesWithTheMostStatementscallsOverviewPageTest::testKindRouteLeadsToTheListingNarrowedByKindcallsOverviewPageTest::testNamespaceRouteListsClassesOrFallsBackToFunctionscallsOverviewPageTest::testProblemsAreListedOnlyWhenThereAreSomecallsOverviewPageTest::testProblemsLinksAvailableSourceAndKeepsEveryParsingErrorcallsOverviewPageTest::testRenderIsWrittenExactlycallsOverviewPageTest::testRenderLaysOutEveryRouteToAStatementcallsOverviewPageTest::testRouteSaysSoWhenThereIsNothingOnItcallsOverviewPageTest::testTableRouteListsTheMostNamedTablesWithHowTheyAreUsedcalls
Other tests reaching this symbol 2
ReporterInterfaceTestcallsHtmlReporterTestcalls