PHP Class SebastianBergmann\CodeCoverage\Report\Html\Renderer

Mostrar archivo Open project: sebastianbergmann/php-code-coverage Class Usage Examples

Protected Properties

Property Type Description
$date string
$generator string
$highLowerBound integer
$lowUpperBound integer
$templatePath string
$version string

Public Methods

Method Description
__construct ( string $templatePath, string $generator, string $date, integer $lowUpperBound, integer $highLowerBound ) Constructor.

Protected Methods

Method Description
getActiveBreadcrumb ( SebastianBergmann\CodeCoverage\Node\AbstractNode $node )
getBreadcrumbs ( SebastianBergmann\CodeCoverage\Node\AbstractNode $node )
getColorLevel ( integer $percent ) : string
getCoverageBar ( $percent )
getInactiveBreadcrumb ( SebastianBergmann\CodeCoverage\Node\AbstractNode $node, $pathToRoot )
getPathToRoot ( SebastianBergmann\CodeCoverage\Node\AbstractNode $node )
renderItemTemplate ( Text_Template $template, array $data ) : string
setCommonTemplateVariables ( Text_Template $template, SebastianBergmann\CodeCoverage\Node\AbstractNode $node )

Private Methods

Method Description
getRuntimeString ( ) : string

Method Details

__construct() public method

Constructor.
public __construct ( string $templatePath, string $generator, string $date, integer $lowUpperBound, integer $highLowerBound )
$templatePath string
$generator string
$date string
$lowUpperBound integer
$highLowerBound integer

getActiveBreadcrumb() protected method

protected getActiveBreadcrumb ( SebastianBergmann\CodeCoverage\Node\AbstractNode $node )
$node SebastianBergmann\CodeCoverage\Node\AbstractNode

getBreadcrumbs() protected method

protected getBreadcrumbs ( SebastianBergmann\CodeCoverage\Node\AbstractNode $node )
$node SebastianBergmann\CodeCoverage\Node\AbstractNode

getColorLevel() protected method

protected getColorLevel ( integer $percent ) : string
$percent integer
return string

getCoverageBar() protected method

protected getCoverageBar ( $percent )

getInactiveBreadcrumb() protected method

protected getInactiveBreadcrumb ( SebastianBergmann\CodeCoverage\Node\AbstractNode $node, $pathToRoot )
$node SebastianBergmann\CodeCoverage\Node\AbstractNode

getPathToRoot() protected method

protected getPathToRoot ( SebastianBergmann\CodeCoverage\Node\AbstractNode $node )
$node SebastianBergmann\CodeCoverage\Node\AbstractNode

renderItemTemplate() protected method

protected renderItemTemplate ( Text_Template $template, array $data ) : string
$template Text_Template
$data array
return string

setCommonTemplateVariables() protected method

protected setCommonTemplateVariables ( Text_Template $template, SebastianBergmann\CodeCoverage\Node\AbstractNode $node )
$template Text_Template
$node SebastianBergmann\CodeCoverage\Node\AbstractNode

Property Details

$date protected_oe property

protected string $date
return string

$generator protected_oe property

protected string $generator
return string

$highLowerBound protected_oe property

protected int $highLowerBound
return integer

$lowUpperBound protected_oe property

protected int $lowUpperBound
return integer

$templatePath protected_oe property

protected string $templatePath
return string

$version protected_oe property

protected string $version
return string