You are here

public function ReCaptcha::setScoreThreshold in reCAPTCHA 8.2

Same name and namespace in other branches
  1. 7.2 recaptcha-php/src/ReCaptcha/ReCaptcha.php \ReCaptcha\ReCaptcha::setScoreThreshold()

Provide a threshold to meet or exceed in verify() Threshold should be a float between 0 and 1 which will be tested as response >= threshold.

Parameters

float $threshold Expected threshold:

Return value

ReCaptcha Current instance for fluent interface

File

recaptcha-php/src/ReCaptcha/ReCaptcha.php, line 244

Class

ReCaptcha
reCAPTCHA client.

Namespace

ReCaptcha

Code

public function setScoreThreshold($threshold) {
  $this->threshold = floatval($threshold);
  return $this;
}