src/Validator/Constraints/IsGmail.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Validator\Constraints;
  3. use \Symfony\Component\Validator\Constraint;
  4. /**
  5.  * @Annotation
  6.  */
  7. class IsGmail extends Constraint
  8. {
  9.     public string $message = 'Désole, votre email doit etre du format Gmail - {{ string }}';
  10.     /**
  11.      * @return string
  12.      */
  13.     public function validatedBy(): string
  14.     {
  15.         return \get_class($this).'Validator';
  16.     }
  17. }