Documentation

Crap4j
in package

FinalYes

Table of Contents

Properties

$threshold  : int

Methods

__construct()  : mixed
process()  : string
crapLoad()  : float
roundValue()  : float

Properties

$threshold read-only

private int $threshold

Methods

__construct()

public __construct([int $threshold = 30 ]) : mixed
Parameters
$threshold : int = 30

process()

public process(CodeCoverage $coverage[, null|non-empty-string $target = null ][, null|non-empty-string $name = null ]) : string
Parameters
$coverage : CodeCoverage
$target : null|non-empty-string = null
$name : null|non-empty-string = null
Tags
throws
WriteOperationFailedException
Return values
string

crapLoad()

private crapLoad(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
Return values
float
On this page

Search results