PHP_CodeCoverage_Report_HTML_Renderer_Directory
extends PHP_CodeCoverage_Report_HTML_Renderer
in package
Renders 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
- getActiveBreadcrumb() : mixed
- getBreadcrumbs() : mixed
- getColorLevel() : string
- getCoverageBar() : mixed
- getInactiveBreadcrumb() : mixed
- getPathToRoot() : mixed
- renderItem() : string
- 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 —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 —renderItem()
protected
renderItem(PHP_CodeCoverage_Report_Node $item[, bool $total = false ]) : string
Parameters
- $item : PHP_CodeCoverage_Report_Node
- $total : bool = false
Return values
string —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