PHP_CodeCoverage_Report_HTML_Renderer_Dashboard
extends PHP_CodeCoverage_Report_HTML_Renderer
in package
Renders the dashboard for a PHP_CodeCoverage_Report_Node_Directory node.
Tags
Table of Contents
- $date : string
- $generator : string
- $highLowerBound : int
- $lowUpperBound : int
- $templatePath : string
- $version : string
- __construct() : mixed
- Constructor.
- render() : mixed
- complexity() : array<string|int, mixed>
- Returns the data for the Class/Method Complexity charts.
- coverageDistribution() : array<string|int, mixed>
- Returns the data for the Class / Method Coverage Distribution chart.
- getActiveBreadcrumb() : mixed
- getBreadcrumbs() : mixed
- getColorLevel() : string
- getCoverageBar() : mixed
- getInactiveBreadcrumb() : mixed
- getPathToRoot() : mixed
- insufficientCoverage() : array<string|int, mixed>
- Returns the classes / methods with insufficient coverage.
- projectRisks() : array<string|int, mixed>
- Returns the project risks according to the CRAP index.
- renderItemTemplate() : string
- setCommonTemplateVariables() : mixed
Properties
$date
protected
string
$date
$generator
protected
string
$generator
$highLowerBound
protected
int
$highLowerBound
$lowUpperBound
protected
int
$lowUpperBound
$templatePath
protected
string
$templatePath
$version
protected
string
$version
Methods
__construct()
Constructor.
public
__construct(string $templatePath, string $generator, string $date, int $lowUpperBound, int $highLowerBound) : mixed
Parameters
- $templatePath : string
- $generator : string
- $date : string
- $lowUpperBound : int
- $highLowerBound : int
Return values
mixed —render()
public
render(PHP_CodeCoverage_Report_Node_Directory $node, string $file) : mixed
Parameters
- $node : PHP_CodeCoverage_Report_Node_Directory
- $file : string
Return values
mixed —complexity()
Returns the data for the Class/Method Complexity charts.
protected
complexity(array<string|int, mixed> $classes, string $baseLink) : array<string|int, mixed>
Parameters
- $classes : array<string|int, mixed>
- $baseLink : string
Return values
array<string|int, mixed> —coverageDistribution()
Returns the data for the Class / Method Coverage Distribution chart.
protected
coverageDistribution(array<string|int, mixed> $classes) : array<string|int, mixed>
Parameters
- $classes : array<string|int, mixed>
Return values
array<string|int, mixed> —getActiveBreadcrumb()
protected
getActiveBreadcrumb(PHP_CodeCoverage_Report_Node $node) : mixed
Parameters
- $node : PHP_CodeCoverage_Report_Node
Return values
mixed —getBreadcrumbs()
protected
getBreadcrumbs(PHP_CodeCoverage_Report_Node $node) : mixed
Parameters
- $node : PHP_CodeCoverage_Report_Node
Return values
mixed —getColorLevel()
protected
getColorLevel(int $percent) : string
Parameters
- $percent : int
Return values
string —getCoverageBar()
protected
getCoverageBar(mixed $percent) : mixed
Parameters
- $percent : mixed
Return values
mixed —getInactiveBreadcrumb()
protected
getInactiveBreadcrumb(PHP_CodeCoverage_Report_Node $node, mixed $pathToRoot) : mixed
Parameters
- $node : PHP_CodeCoverage_Report_Node
- $pathToRoot : mixed
Return values
mixed —getPathToRoot()
protected
getPathToRoot(PHP_CodeCoverage_Report_Node $node) : mixed
Parameters
- $node : PHP_CodeCoverage_Report_Node
Return values
mixed —insufficientCoverage()
Returns the classes / methods with insufficient coverage.
protected
insufficientCoverage(array<string|int, mixed> $classes, string $baseLink) : array<string|int, mixed>
Parameters
- $classes : array<string|int, mixed>
- $baseLink : string
Return values
array<string|int, mixed> —projectRisks()
Returns the project risks according to the CRAP index.
protected
projectRisks(array<string|int, mixed> $classes, string $baseLink) : array<string|int, mixed>
Parameters
- $classes : array<string|int, mixed>
- $baseLink : string
Return values
array<string|int, mixed> —renderItemTemplate()
protected
renderItemTemplate(Text_Template $template, array<string|int, mixed> $data) : string
Parameters
- $template : Text_Template
- $data : array<string|int, mixed>
Return values
string —setCommonTemplateVariables()
protected
setCommonTemplateVariables(Text_Template $template, PHP_CodeCoverage_Report_Node $node) : mixed
Parameters
- $template : Text_Template
- $node : PHP_CodeCoverage_Report_Node