public function Response::__construct in reCAPTCHA 8.2
Same name and namespace in other branches
- 6.2 recaptcha-php/src/ReCaptcha/Response.php \ReCaptcha\Response::__construct()
- 7.2 recaptcha-php/src/ReCaptcha/Response.php \ReCaptcha\Response::__construct()
Constructor.
Parameters
boolean $success:
string $hostname:
string $challengeTs:
string $apkPackageName:
float $score:
strong $action:
array $errorCodes:
File
- recaptcha-php/
src/ ReCaptcha/ Response.php, line 118
Class
- Response
- The response returned from the service.
Namespace
ReCaptchaCode
public function __construct($success, array $errorCodes = array(), $hostname = null, $challengeTs = null, $apkPackageName = null, $score = null, $action = null) {
$this->success = $success;
$this->hostname = $hostname;
$this->challengeTs = $challengeTs;
$this->apkPackageName = $apkPackageName;
$this->score = $score;
$this->action = $action;
$this->errorCodes = $errorCodes;
}