Kint
$resp ReCaptcha\Response (7)
  • Properties (7)
  • Available methods (10)
  • private success -> boolean false
    private errorCodes -> array (2)
    0 => string (22) "invalid-input-response"
    1 => string (17) "hostname-mismatch"
    private hostname -> null
    private challengeTs -> null
    private apkPackageName -> null
    private score -> null
    private action -> null
  • public __construct($success, array $errorCodes = array(), $hostname = null, $challengeTs = null, $apkPackageName = null, $score = null, $action = null) Constructor.
    new \ReCaptcha\Response($success, array $errorCodes = array(), $hostname = null, $challengeTs = null, $apkPackageName = null, $score = null, $action = null)
    /**
    * Constructor.
    *
    * @param boolean $success
    * @param string $hostname
    * @param string $challengeTs
    * @param string $apkPackageName
    * @param float $score
    * @param string $action
    * @param array $errorCodes
    */
    
    Defined in .../google/recaptcha/src/ReCaptcha/Response.php:126
    public isSuccess(): boolean Is success?
    $resp->isSuccess()
    /**
    * Is success?
    *
    * @return boolean
    */
    
    Defined in .../google/recaptcha/src/ReCaptcha/Response.php:142
    public getErrorCodes(): array Get error codes.
    $resp->getErrorCodes()
    /**
    * Get error codes.
    *
    * @return array
    */
    
    Defined in .../google/recaptcha/src/ReCaptcha/Response.php:152
    public getHostname(): string Get hostname.
    $resp->getHostname()
    /**
    * Get hostname.
    *
    * @return string
    */
    
    Defined in .../google/recaptcha/src/ReCaptcha/Response.php:162
    public getChallengeTs(): string Get challenge timestamp
    $resp->getChallengeTs()
    /**
    * Get challenge timestamp
    *
    * @return string
    */
    
    Defined in .../google/recaptcha/src/ReCaptcha/Response.php:172
    public getApkPackageName(): string Get APK package name
    $resp->getApkPackageName()
    /**
    * Get APK package name
    *
    * @return string
    */
    
    Defined in .../google/recaptcha/src/ReCaptcha/Response.php:182
    public getScore(): float Get score
    $resp->getScore()
    /**
    * Get score
    *
    * @return float
    */
    
    Defined in .../google/recaptcha/src/ReCaptcha/Response.php:191
    public getAction(): string Get action
    $resp->getAction()
    /**
    * Get action
    *
    * @return string
    */
    
    Defined in .../google/recaptcha/src/ReCaptcha/Response.php:201
    public toArray()
    $resp->toArray()
    Defined in .../google/recaptcha/src/ReCaptcha/Response.php:206
    public static fromJson($json): \ReCaptcha\Response Build the response from the expected JSON returned by the service.
    \ReCaptcha\Response::fromJson($json)
    /**
    * Build the response from the expected JSON returned by the service.
    *
    * @param string $json
    * @return \ReCaptcha\Response
    */
    
    Defined in .../google/recaptcha/src/ReCaptcha/Response.php:90