classCatalogStatistics
final class CatalogStatistics
The counts the report is read through.
Every page asks the same questions of the catalog — how far the analysis got, what the statements do, which tables they touch — so the counting is done once, over the whole catalog, rather than once per page over whatever that page happens to hold.
Methods§
public function statements(): intHow many statements the catalog holds.
Returns
intTest cases 1
Calls 1
- method-call Catalog::count() line 39
public function resolved(): intHow many statements have no gaps at all.
Returns
intTest cases 1
public function open(): intHow many statements the analyzer stopped short of, one way or another.
Returns
intTest cases 1
public function findings(): intpublic function atLeast(Severity $severity): intHow many statements carry a finding of at least that severity.
Parameters
$severity | Severity |
Returns
intTest cases 1
public function byResolution(): array<string, int>How many statements each resolution accounts for, in the order they are explained.
Returns
array<string, int>Test cases 1
Calls 1
- static-call Resolution::cases() line 102
public function byKind(): array<string, int>How many statements of each kind there are, most first.
Returns
array<string, int>Test cases 1
Calls 1
- function-call
arsortline 123
public function byRule(): array<string, int>How many findings each rule accounts for, most first.
Returns
array<string, int>Test cases 1
Calls 1
- function-call
arsortline 141
public function tables(): list<array{name: string, reads: int, writes: int, statements: int}>Every table the catalog names, with how it is used, most used first.
Returns
list<array{name: string, reads: int, writes: int, statements: int}>Test cases 1
public function files(): array<string, array{statements: int, open: int, findings: int}>Every file the catalog names, with what was found in it, in path order.
Returns
array<string, array{statements: int, open: int, findings: int}>Test cases 1
public function flagged(): list<CatalogEntry>Every statement carrying a finding, worst first.
Returns
list<CatalogEntry>Test cases 1
Calls 3
- method-call Catalog::sorted() line 196
- function-call
usortline 201 - method-call CatalogEntry::severity() line 202
Private surface 1§
Implementation details, listed for orientation only.
private Catalog $catalogTest cases 29§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 11
CatalogStatisticsTest::testAtLeastCountsTheStatementsWorthLookingAtcallsCatalogStatisticsTest::testByKindCountsTheKindsMostFirstcallsCatalogStatisticsTest::testByResolutionAccountsForEveryStatementUnderEveryResolutioncallsCatalogStatisticsTest::testByRuleCountsTheFindingsMostFirstcallsCatalogStatisticsTest::testFilesSayWhatWasFoundInEachOfThemcallsCatalogStatisticsTest::testFindingsCountsEveryFindingOfEveryStatementcallsCatalogStatisticsTest::testFlaggedListsTheReportedStatementsWorstFirstcallsCatalogStatisticsTest::testOpenCountsTheStatementsWhoseSearchDidNotClosecallsCatalogStatisticsTest::testResolvedCountsTheStatementsWithNoGapscallsCatalogStatisticsTest::testStatementsCountsWhatTheCatalogHoldscallsCatalogStatisticsTest::testTablesSayHowEachOneIsUsedcalls
Other tests reaching this symbol 18
ReporterInterfaceTestcallsHtmlReporterTestcallsClassPageTestcallsFileIndexPageTestcallsFilePageTestcallsFindingPageTestcallsNamespacePageTestcallsOverviewPageTestcallsStatementIndexPageTestcallsStatementPageTestcallsTableIndexPageTestcallsTablePageTestcallsPageShellTestcallsReportSiteTestcallsSearchIndexTestcallsSourceCodeTestcallsStatementListTestcallsStatementRowTestcalls