Lggr
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SebastianBergmann\CodeCoverage\Report\Html\Renderer Class Reference
Inheritance diagram for SebastianBergmann\CodeCoverage\Report\Html\Renderer:
Inheritance graph
[legend]

Public Member Functions

 __construct ($templatePath, $generator, $date, $lowUpperBound, $highLowerBound)
 

Protected Member Functions

 renderItemTemplate (\Text_Template $template, array $data)
 
 setCommonTemplateVariables (\Text_Template $template, AbstractNode $node)
 
 getBreadcrumbs (AbstractNode $node)
 
 getActiveBreadcrumb (AbstractNode $node)
 
 getInactiveBreadcrumb (AbstractNode $node, $pathToRoot)
 
 getPathToRoot (AbstractNode $node)
 
 getCoverageBar ($percent)
 
 getColorLevel ($percent)
 

Protected Attributes

 $templatePath
 
 $generator
 
 $date
 
 $lowUpperBound
 
 $highLowerBound
 
 $version
 

Detailed Description

Base class for node renderers.

Constructor & Destructor Documentation

◆ __construct()

SebastianBergmann\CodeCoverage\Report\Html\Renderer::__construct (   $templatePath,
  $generator,
  $date,
  $lowUpperBound,
  $highLowerBound 
)

Constructor.

Parameters
string$templatePath
string$generator
string$date
int$lowUpperBound
int$highLowerBound

Reimplemented in SebastianBergmann\CodeCoverage\Report\Html\File.

Member Function Documentation

◆ getColorLevel()

SebastianBergmann\CodeCoverage\Report\Html\Renderer::getColorLevel (   $percent)
protected
Parameters
int$percent
Returns
string

◆ renderItemTemplate()

SebastianBergmann\CodeCoverage\Report\Html\Renderer::renderItemTemplate ( \Text_Template  $template,
array  $data 
)
protected
Parameters
\Text_Template$template
array$data
Returns
string

◆ setCommonTemplateVariables()

SebastianBergmann\CodeCoverage\Report\Html\Renderer::setCommonTemplateVariables ( \Text_Template  $template,
AbstractNode  $node 
)
protected
Parameters
\Text_Template$template
AbstractNode$node

The documentation for this class was generated from the following file: