PHP Class SebastianBergmann\CodeCoverage\Report\Html\Renderer

Afficher le fichier Open project: sebastianbergmann/php-code-coverage Class Usage Examples

Protected Properties

Свойство Type Description
$date string
$generator string
$highLowerBound integer
$lowUpperBound integer
$templatePath string
$version string

Méthodes publiques

Méthode Description
__construct ( string $templatePath, string $generator, string $date, integer $lowUpperBound, integer $highLowerBound ) Constructor.

Méthodes protégées

Méthode 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

Méthode Description
getRuntimeString ( ) : string

Method Details

__construct() public méthode

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 méthode

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

getBreadcrumbs() protected méthode

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

getColorLevel() protected méthode

protected getColorLevel ( integer $percent ) : string
$percent integer
Résultat string

getCoverageBar() protected méthode

protected getCoverageBar ( $percent )

getInactiveBreadcrumb() protected méthode

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

getPathToRoot() protected méthode

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

renderItemTemplate() protected méthode

protected renderItemTemplate ( Text_Template $template, array $data ) : string
$template Text_Template
$data array
Résultat string

setCommonTemplateVariables() protected méthode

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
Résultat string

$generator protected_oe property

protected string $generator
Résultat string

$highLowerBound protected_oe property

protected int $highLowerBound
Résultat integer

$lowUpperBound protected_oe property

protected int $lowUpperBound
Résultat integer

$templatePath protected_oe property

protected string $templatePath
Résultat string

$version protected_oe property

protected string $version
Résultat string