magnetico-web/src/Validator/Constraints/ValidInvite.php

19 lines
371 B
PHP
Raw Normal View History

2018-06-29 23:52:53 +00:00
<?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';
}
}