You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
405 B
18 lines
405 B
2 years ago
|
<?php
|
||
|
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
namespace App\Validator;
|
||
|
|
||
|
use Symfony\Component\Validator\Constraint;
|
||
|
|
||
|
/**
|
||
|
* @Annotation
|
||
|
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
|
||
|
*/
|
||
|
#[\Attribute(\Attribute::TARGET_PROPERTY | \Attribute::TARGET_METHOD | \Attribute::IS_REPEATABLE)]
|
||
|
class CustomStringNeverCollides extends Constraint
|
||
|
{
|
||
|
public string $message = 'This value already exists, or is reserved.';
|
||
|
}
|