ReCaptcha\Response
The response returned from the service.
Synopsis
class Response
{
- // members
- private boolean $success = false;
- private array $errorCodes = ;
- // methods
- public static Response fromJson()
- public void __construct()
- public boolean isSuccess()
- public array getErrorCodes()
Members
private
- $errorCodes
—
array
Error code strings. - $success
—
boolean
Success or failure.
Methods
public
- __construct() — Constructor.
- fromJson() — Build the response from the expected JSON returned by the service.
- getErrorCodes() — Get error codes.
- isSuccess() — Is success?