src/Validator/AuditAnalyticsEmail.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Validator;
  3. use Symfony\Component\Validator\Constraint;
  4. /**
  5.  * @Annotation
  6.  */
  7. class AuditAnalyticsEmail extends Constraint
  8. {
  9.     /*
  10.      * Any public properties become valid options for the annotation.
  11.      * Then, use these in your validator class.
  12.      */
  13.     public string $message 'The email "{{ value }}" is not on the whitelist.';
  14.     public array $allowedEmails = [];
  15. }