public function ReCaptcha::setScoreThreshold in reCAPTCHA 7.2
Same name and namespace in other branches
- 8.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
ReCaptchaCode
public function setScoreThreshold($threshold) {
$this->threshold = floatval($threshold);
return $this;
}