You are here

public function ReCaptcha::setChallengeTimeout in reCAPTCHA 7.2

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

Provide a timeout in seconds to test against the challenge timestamp in verify()

Parameters

int $timeoutSeconds Expected hostname:

Return value

ReCaptcha Current instance for fluent interface

File

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

Class

ReCaptcha
reCAPTCHA client.

Namespace

ReCaptcha

Code

public function setChallengeTimeout($timeoutSeconds) {
  $this->timeoutSeconds = $timeoutSeconds;
  return $this;
}