classPalette
final class Palette
Which hue each fact about a statement is written in.
The hues are doc-ui's tones. What a statement does and what the analyzer managed to establish about it are two different things, and the report keeps them apart by hue. The kind carries an identity tone — blue, teal, violet, pink, indigo, slate — because it is a property of the statement; the resolution and the findings carry state tones — ok, warn, danger, neutral — because they are judgements about the reading. A search the analyzer left open is the common case in a real application, so it is written quietly, as an outline, and the loud tones are kept for what is rare and worth a look: input from outside the program, and a finding of some severity.
Constants§
public const OPEN = 'chip-ghost'The quiet writing of a state that is ordinary: an outline with no tint.
Methods§
public function kind(string $kind): stringThe identity tone a statement of that kind is written in.
Parameters
$kind | string |
Returns
stringTest cases 1
Called from 5
- method-call SqlCatalog\Reporter\Html\Page\OverviewPage::kindRoute() packages/sql-catalog/src/Reporter/Html/Page/OverviewPage.php:167
- method-call SqlCatalog\Reporter\Html\Page\StatementPage::render() packages/sql-catalog/src/Reporter/Html/Page/StatementPage.php:78
- method-call SqlCatalog\Reporter\Html\Page\StatementPage::facts() packages/sql-catalog/src/Reporter/Html/Page/StatementPage.php:194
- method-call SqlCatalog\Reporter\Html\StatementList::facets() packages/sql-catalog/src/Reporter/Html/StatementList.php:82
- method-call SqlCatalog\Reporter\Html\StatementRow::render() packages/sql-catalog/src/Reporter/Html/StatementRow.php:56
Calls 1
- method-call Palette::kindGroup() line 38
public function kindGroup(string $kind): stringThe group a kind is coloured as, which is also how the report sections a table's statements.
Parameters
$kind | string |
Returns
stringTest cases 1
Called from 1
public function resolution(Resolution $resolution): stringThe state tone a resolution is written in.
Parameters
$resolution | Resolution |
Returns
stringTest cases 1
Called from 4
- method-call SqlCatalog\Reporter\Html\Page\OverviewPage::coverage() packages/sql-catalog/src/Reporter/Html/Page/OverviewPage.php:237
- method-call SqlCatalog\Reporter\Html\Page\StatementPage::facts() packages/sql-catalog/src/Reporter/Html/Page/StatementPage.php:188
- method-call SqlCatalog\Reporter\Html\StatementList::facets() packages/sql-catalog/src/Reporter/Html/StatementList.php:83
- method-call SqlCatalog\Reporter\Html\StatementRow::meta() packages/sql-catalog/src/Reporter/Html/StatementRow.php:129
Calls 6
- class-const Resolution::Resolved() line 69
- class-const Resolution::ExternalInput() line 70
- class-const Resolution::IncompleteModel() line 71
- class-const Resolution::Incomplete() line 71
- class-const Palette::OPEN() line 71
- class-const Resolution::NotAnalyzed() line 72
public function severity(Severity $severity): stringThe state tone a severity is written in.
Parameters
$severity | Severity |
Returns
stringTest cases 1
Called from 5
- method-call SqlCatalog\Reporter\Html\Page\FindingPage::section() packages/sql-catalog/src/Reporter/Html/Page/FindingPage.php:98
- method-call SqlCatalog\Reporter\Html\Page\OverviewPage::attention() packages/sql-catalog/src/Reporter/Html/Page/OverviewPage.php:205
- method-call SqlCatalog\Reporter\Html\Page\StatementPage::findings() packages/sql-catalog/src/Reporter/Html/Page/StatementPage.php:260
- method-call SqlCatalog\Reporter\Html\StatementList::facets() packages/sql-catalog/src/Reporter/Html/StatementList.php:84
- method-call SqlCatalog\Reporter\Html\StatementRow::meta() packages/sql-catalog/src/Reporter/Html/StatementRow.php:132
Calls 4
- class-const Severity::High() line 82
- class-const Severity::Medium() line 83
- class-const Severity::Low() line 84
- class-const Severity::Info() line 84
public function bar(string $chipRole): stringThe class a segment of a meter carries for a chip role.
A tone is a tone on a meter as on a chip; the quiet outline of an open search is a hatched segment, which is how doc-ui draws what is not settled.
Parameters
$chipRole | string |
Returns
stringTest cases 1
Called from 1
Calls 1
- class-const Palette::OPEN() line 97
Test cases 20§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 5
Other tests reaching this symbol 15
ReporterInterfaceTestcallsHtmlReporterTestcallsClassPageTestcallsFileIndexPageTestcallsFilePageTestcallsFindingPageTestcallsNamespacePageTestcallsOverviewPageTestcallsStatementIndexPageTestcallsStatementPageTestcallsTableIndexPageTestcallsTablePageTestcallsPageShellTestcallsStatementListTestcallsStatementRowTestcalls
Relations§
Instantiated in 5
- new SqlCatalog\Reporter\Html\Page\FindingPage::__construct() packages/sql-catalog/src/Reporter/Html/Page/FindingPage.php:39
- new SqlCatalog\Reporter\Html\Page\OverviewPage::__construct() packages/sql-catalog/src/Reporter/Html/Page/OverviewPage.php:43
- new SqlCatalog\Reporter\Html\Page\StatementPage::__construct() packages/sql-catalog/src/Reporter/Html/Page/StatementPage.php:68
- new SqlCatalog\Reporter\Html\StatementList::__construct() packages/sql-catalog/src/Reporter/Html/StatementList.php:37
- new SqlCatalog\Reporter\Html\StatementRow::__construct() packages/sql-catalog/src/Reporter/Html/StatementRow.php:41
Method calls 15
- method-call SqlCatalog\Reporter\Html\Page\FindingPage::section() packages/sql-catalog/src/Reporter/Html/Page/FindingPage.php:98
- method-call SqlCatalog\Reporter\Html\Page\OverviewPage::kindRoute() packages/sql-catalog/src/Reporter/Html/Page/OverviewPage.php:167
- method-call SqlCatalog\Reporter\Html\Page\OverviewPage::attention() packages/sql-catalog/src/Reporter/Html/Page/OverviewPage.php:205
- method-call SqlCatalog\Reporter\Html\Page\OverviewPage::coverage() packages/sql-catalog/src/Reporter/Html/Page/OverviewPage.php:237
- method-call SqlCatalog\Reporter\Html\Page\OverviewPage::coverage() packages/sql-catalog/src/Reporter/Html/Page/OverviewPage.php:240
- method-call SqlCatalog\Reporter\Html\Page\StatementPage::render() packages/sql-catalog/src/Reporter/Html/Page/StatementPage.php:78
- method-call SqlCatalog\Reporter\Html\Page\StatementPage::facts() packages/sql-catalog/src/Reporter/Html/Page/StatementPage.php:188
- method-call SqlCatalog\Reporter\Html\Page\StatementPage::facts() packages/sql-catalog/src/Reporter/Html/Page/StatementPage.php:194
- method-call SqlCatalog\Reporter\Html\Page\StatementPage::findings() packages/sql-catalog/src/Reporter/Html/Page/StatementPage.php:260
- method-call SqlCatalog\Reporter\Html\StatementList::facets() packages/sql-catalog/src/Reporter/Html/StatementList.php:82
- method-call SqlCatalog\Reporter\Html\StatementList::facets() packages/sql-catalog/src/Reporter/Html/StatementList.php:83
- method-call SqlCatalog\Reporter\Html\StatementList::facets() packages/sql-catalog/src/Reporter/Html/StatementList.php:84
- method-call SqlCatalog\Reporter\Html\StatementRow::render() packages/sql-catalog/src/Reporter/Html/StatementRow.php:56
- method-call SqlCatalog\Reporter\Html\StatementRow::meta() packages/sql-catalog/src/Reporter/Html/StatementRow.php:129
- method-call SqlCatalog\Reporter\Html\StatementRow::meta() packages/sql-catalog/src/Reporter/Html/StatementRow.php:132
Type declarations 10
- type SqlCatalog\Reporter\Html\Page\FindingPage packages/sql-catalog/src/Reporter/Html/Page/FindingPage.php:30
- type SqlCatalog\Reporter\Html\Page\FindingPage packages/sql-catalog/src/Reporter/Html/Page/FindingPage.php:35
- type SqlCatalog\Reporter\Html\Page\OverviewPage packages/sql-catalog/src/Reporter/Html/Page/OverviewPage.php:35
- type SqlCatalog\Reporter\Html\Page\OverviewPage packages/sql-catalog/src/Reporter/Html/Page/OverviewPage.php:40
- type SqlCatalog\Reporter\Html\Page\StatementPage packages/sql-catalog/src/Reporter/Html/Page/StatementPage.php:52
- type SqlCatalog\Reporter\Html\Page\StatementPage packages/sql-catalog/src/Reporter/Html/Page/StatementPage.php:62
- type SqlCatalog\Reporter\Html\StatementList packages/sql-catalog/src/Reporter/Html/StatementList.php:28
- type SqlCatalog\Reporter\Html\StatementList packages/sql-catalog/src/Reporter/Html/StatementList.php:33
- type SqlCatalog\Reporter\Html\StatementRow packages/sql-catalog/src/Reporter/Html/StatementRow.php:30
- type SqlCatalog\Reporter\Html\StatementRow packages/sql-catalog/src/Reporter/Html/StatementRow.php:37