src/Validator/CheckExistedParticipation.php line 8
<?php
namespace App\Validator;
use Symfony\Component\Validator\Constraint;
#[\Attribute]
class CheckExistedParticipation extends Constraint
{
/*
* Any public properties become valid options for the annotation.
* Then, use these in your validator class.
*/
public $message = 'Cette référence "{{ value }}" ne correspond à aucune participation.';
public function validatedBy():string
{
return static::class.'Validator';
}
public function getTargets():string
{
return self::CLASS_CONSTRAINT;
}
}