<?php
/*
* This file is part of EC-CUBE
*
* Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
*
* http://www.ec-cube.co.jp/
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Eccube\Form\Validator;
/**
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*/
class RecaptchaV3 extends \Symfony\Component\Validator\Constraint
{
const INVALID_SECRETKEY_ERROR = '7d79c0ab-ddba-46cc-a703-a7a4b08de310';
const INVALID_SCORE_THRESHOLD_ERROR = '7f447c1c-0266-4e10-9c6c-573df282e413';
const SCORE_ERROR = '79819696-02ac-4a99-9ff0-14e127c4d1bc';
protected static $errorNames = [
self::INVALID_SECRETKEY_ERROR => 'INVALID_SECRETKEY_ERROR',
self::INVALID_SCORE_THRESHOLD_ERROR => 'INVALID_SCORE_THRESHOLD_ERROR',
self::SCORE_ERROR => 'SCORE_ERROR',
];
private $secretkey;
private $score_threshold;
public function getSecretkey()
{
return $this->secretkey;
}
public function getScoreThreshold()
{
return $this->score_threshold;
}
public function __construct($secretkey, $score_threshold, array $groups = null, $payload = null)
{
parent::__construct([], $groups, $payload);
$this->secretkey = $secretkey;
$this->score_threshold = $score_threshold;
}
}