Menu

## Crap4j
in package

Crap4j.php : 24

### Table of Contents

$threshold : int
__construct() : mixed
process() : string
crapLoad() : float
roundValue() : float

### Properties

#### $threshold

Crap4j.php : 29
`private int $threshold`

### Methods

#### __construct()

Crap4j.php : 31
`public __construct([int $threshold = 30 ]) : mixed`

##### Parameters

$threshold : int = 30

##### Return values

mixed —

#### process()

Crap4j.php : 39
`public process(CodeCoverage $coverage[, string|null $target = null ][, string|null $name = null ]) : string`

##### Parameters

$coverage : CodeCoverage
$target : string|null = null
$name : string|null = null

##### Tags

throws
  WriteOperationFailedException

##### Return values

string —

#### crapLoad()

Crap4j.php : 137
`private crapLoad(float $crapValue, int $cyclomaticComplexity, float $coveragePercent) : float`

##### Parameters

$crapValue : float
$cyclomaticComplexity : int
$coveragePercent : float

##### Return values

float —

#### roundValue()

Crap4j.php : 149
`private roundValue(float $value) : float`

##### Parameters

$value : float

##### Return values

float —

## Search results