src/Validator/ValidForumPseudoLength.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Validator;
  3. use Symfony\Component\Validator\Constraint;
  4. /**
  5.  * @Annotation
  6.  * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
  7.  */
  8. class ValidForumPseudoLength extends Constraint
  9. {
  10.     /*
  11.      * Any public properties become valid options for the annotation.
  12.      * Then, use these in your validator class.
  13.      */
  14.     public $message 'The pseudo must contain at least {{ value }} characters.';
  15. }