You are here

public function PHP_CodeCoverage_Report_Crap4j::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Crap4j.php \PHP_CodeCoverage_Report_Crap4j::__construct()

Parameters

int $threshold:

File

vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Crap4j.php, line 24

Class

PHP_CodeCoverage_Report_Crap4j
@since Class available since Release 2.0.0

Code

public function __construct($threshold = 30) {
  if (!is_int($threshold)) {
    throw PHP_CodeCoverage_Util_InvalidArgumentHelper::factory(1, 'integer');
  }
  $this->threshold = $threshold;
}