magnetico-web/src/Validator/Constraints/ValidInvite.php
2018-06-30 02:52:53 +03:00

19 lines
371 B
PHP

<?php
namespace App\Validator\Constraints;
use Symfony\Component\Validator\Constraint;
/**
* @Annotation
*/
class ValidInvite extends Constraint
{
public $notFoundMessage = 'Invite {{ code }} not found.';
public $usedMessage = 'Invite {{ code }} is used.';
public function validatedBy(): string
{
return get_class($this).'Validator';
}
}