You are here

public function Response::__construct in reCAPTCHA 8.2

Same name and namespace in other branches
  1. 6.2 recaptcha-php/src/ReCaptcha/Response.php \ReCaptcha\Response::__construct()
  2. 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

ReCaptcha

Code

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;
}