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

Public Member Functions

 __construct ($templatePath, $generator, $date, $lowUpperBound, $highLowerBound)
 
 render (FileNode $node, $file)
 

Protected Member Functions

 renderItems (FileNode $node)
 
 renderTraitOrClassItems (array $items, \Text_Template $template, \Text_Template $methodItemTemplate)
 
 renderFunctionItems (array $functions, \Text_Template $template)
 
 renderFunctionOrMethodItem (\Text_Template $template, array $item, $indent='')
 
 renderSource (FileNode $node)
 
 loadFile ($file)
 
- Protected Member Functions inherited from SebastianBergmann\CodeCoverage\Report\Html\Renderer
 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)
 

Additional Inherited Members

- Protected Attributes inherited from SebastianBergmann\CodeCoverage\Report\Html\Renderer
 $templatePath
 
 $generator
 
 $date
 
 $lowUpperBound
 
 $highLowerBound
 
 $version
 

Detailed Description

Renders a file node.

Constructor & Destructor Documentation

◆ __construct()

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

Constructor.

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

Reimplemented from SebastianBergmann\CodeCoverage\Report\Html\Renderer.

Member Function Documentation

◆ loadFile()

SebastianBergmann\CodeCoverage\Report\Html\File::loadFile (   $file)
protected
Parameters
string$file
Returns
array

◆ render()

SebastianBergmann\CodeCoverage\Report\Html\File::render ( FileNode  $node,
  $file 
)
Parameters
FileNode$node
string$file

◆ renderFunctionItems()

SebastianBergmann\CodeCoverage\Report\Html\File::renderFunctionItems ( array  $functions,
\Text_Template  $template 
)
protected
Parameters
array$functions
\Text_Template$template
Returns
string

◆ renderFunctionOrMethodItem()

SebastianBergmann\CodeCoverage\Report\Html\File::renderFunctionOrMethodItem ( \Text_Template  $template,
array  $item,
  $indent = '' 
)
protected
Parameters
\Text_Template$template
Returns
string

◆ renderItems()

SebastianBergmann\CodeCoverage\Report\Html\File::renderItems ( FileNode  $node)
protected
Parameters
FileNode$node
Returns
string

◆ renderSource()

SebastianBergmann\CodeCoverage\Report\Html\File::renderSource ( FileNode  $node)
protected
Parameters
FileNode$node
Returns
string

◆ renderTraitOrClassItems()

SebastianBergmann\CodeCoverage\Report\Html\File::renderTraitOrClassItems ( array  $items,
\Text_Template  $template,
\Text_Template  $methodItemTemplate 
)
protected
Parameters
array$items
\Text_Template$template
\Text_Template$methodItemTemplate
Returns
string

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