/** * Message of fails * * @return array */ public function errors() { return $this->response->getErrorCodes(); }
/** * @param Response $response */ public function __construct(Response $response) { parent::__construct('ReCaptcha errors: ' . implode(', ', $response->getErrorCodes())); }