public function Response::__construct in reCAPTCHA 6.2
Same name and namespace in other branches
- 8.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:
array $errorCodes:
File
- recaptcha-php/
src/ ReCaptcha/ Response.php, line 77
Class
- Response
- The response returned from the service.
Namespace
ReCaptchaCode
public function __construct($success, array $errorCodes = array()) {
$this->success = $success;
$this->errorCodes = $errorCodes;
}