PHP_CodeCoverage_Report_Crap4j
in package
Tags
Table of Contents
- $threshold : int
- __construct() : mixed
- process() : string
- getCrapLoad() : float
- roundValue() : float
Properties
$threshold
private
int
$threshold
Methods
__construct()
public
__construct([int $threshold = 30 ]) : mixed
Parameters
- $threshold : int = 30
Return values
mixed —process()
public
process(PHP_CodeCoverage $coverage[, string $target = null ][, string $name = null ]) : string
Parameters
- $coverage : PHP_CodeCoverage
- $target : string = null
- $name : string = null
Return values
string —getCrapLoad()
private
getCrapLoad(float $crapValue, int $cyclomaticComplexity, float $coveragePercent) : float
Parameters
- $crapValue : float
- $cyclomaticComplexity : int
- $coveragePercent : float
Return values
float —roundValue()
private
roundValue(float $value) : float
Parameters
- $value : float