<?php declare(strict_types=1);
namespace App\Validator\Constraints;
use Symfony\Component\Validator\Constraint;
/**
* @Annotation
* @Target("PROPERTY")
*/
class RecaptchaIsTrue extends Constraint
{
public string $message = 'recaptcha.error';
public string $invalidHostMessage = 'recaptcha.invalid_host_error';
/**
* @return string[]|string
*/
public function getTargets()
{
return Constraint::PROPERTY_CONSTRAINT;
}
public function validatedBy(): string
{
return ReCaptchaValidator::class;
}
}