PHP_CodeCoverage_Report_HTML_Renderer_File
extends PHP_CodeCoverage_Report_HTML_Renderer
in package
Renders a PHP_CodeCoverage_Report_Node_File node.
Tags
Table of Contents
- $date : string
- $generator : string
- $highLowerBound : int
- $lowUpperBound : int
- $templatePath : string
- $version : string
- $htmlspecialcharsFlags : int
- __construct() : mixed
- Constructor.
- render() : mixed
- getActiveBreadcrumb() : mixed
- getBreadcrumbs() : mixed
- getColorLevel() : string
- getCoverageBar() : mixed
- getInactiveBreadcrumb() : mixed
- getPathToRoot() : mixed
- loadFile() : array<string|int, mixed>
- renderFunctionItems() : string
- renderFunctionOrMethodItem() : string
- renderItems() : string
- renderItemTemplate() : string
- renderSource() : string
- renderTraitOrClassItems() : 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
$htmlspecialcharsFlags
private
int
$htmlspecialcharsFlags
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_File $node, string $file) : mixed
Parameters
- $node : PHP_CodeCoverage_Report_Node_File
- $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 —loadFile()
protected
loadFile(string $file) : array<string|int, mixed>
Parameters
- $file : string
Return values
array<string|int, mixed> —renderFunctionItems()
protected
renderFunctionItems(array<string|int, mixed> $functions, Text_Template $template) : string
Parameters
- $functions : array<string|int, mixed>
- $template : Text_Template
Return values
string —renderFunctionOrMethodItem()
protected
renderFunctionOrMethodItem(Text_Template $template, array<string|int, mixed> $item[, mixed $indent = '' ]) : string
Parameters
- $template : Text_Template
- $item : array<string|int, mixed>
- $indent : mixed = ''
Return values
string —renderItems()
protected
renderItems(PHP_CodeCoverage_Report_Node_File $node) : string
Parameters
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 —renderSource()
protected
renderSource(PHP_CodeCoverage_Report_Node_File $node) : string
Parameters
Return values
string —renderTraitOrClassItems()
protected
renderTraitOrClassItems(array<string|int, mixed> $items, Text_Template $template, Text_Template $methodItemTemplate) : string
Parameters
- $items : array<string|int, mixed>
- $template : Text_Template
- $methodItemTemplate : Text_Template
Return values
string —setCommonTemplateVariables()
protected
setCommonTemplateVariables(Text_Template $template, PHP_CodeCoverage_Report_Node $node) : mixed
Parameters
- $template : Text_Template
- $node : PHP_CodeCoverage_Report_Node