Documentation

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
since

Class available since Release 1.1.0

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

$highLowerBound

protected int $highLowerBound

$lowUpperBound

protected int $lowUpperBound

$templatePath

protected string $templatePath

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

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>

getColorLevel()

protected getColorLevel(int $percent) : string
Parameters
$percent : int
Return values
string

getCoverageBar()

protected getCoverageBar(mixed $percent) : mixed
Parameters
$percent : mixed
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

Search results