Skip to content

class Response

Oliver edited this page Apr 25, 2020 · 1 revision

www/includes/g-recaptcha-src/ReCaptcha/Response.php


Response

Package

Default

Overview

Public Properties

No public properties found

Constants

No constants found

Public Methods

__construct() | fromJson() | getErrorCodes() | isSuccess() |

Properties

errorCodes

Error code strings.

private $errorCodes : array

Array

success

Succes or failure.

private $success : bool

Array

Methods

__construct()

Constructor.

public __construct(bool $success, array $errorCodes = array()) : mixed

fromJson()

Build the response from the expected JSON returned by the service.

public fromJson(string $json) : \ReCaptcha\Response static

getErrorCodes()

Get error codes.

public getErrorCodes() : array

isSuccess()

Is success?

public isSuccess() : bool


\ » Classes » Response

Clone this wiki locally