You are here

public function Response::__construct in reCAPTCHA 6.2

Same name and namespace in other branches
  1. 8.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:

array $errorCodes:

File

recaptcha-php/src/ReCaptcha/Response.php, line 77

Class

Response
The response returned from the service.

Namespace

ReCaptcha

Code

public function __construct($success, array $errorCodes = array()) {
  $this->success = $success;
  $this->errorCodes = $errorCodes;
}