mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-21 12:42:51 +00:00
29 lines
621 B
PHP
29 lines
621 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/*
|
|
* Chill is a software for social workers
|
|
*
|
|
* For the full copyright and license information, please view
|
|
* the LICENSE file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Chill\PersonBundle\PersonIdentifier\Validator;
|
|
|
|
use Symfony\Component\Validator\Constraint;
|
|
|
|
/**
|
|
* Test that the required constraints are present.
|
|
*/
|
|
#[\Attribute]
|
|
class RequiredIdentifierConstraint extends Constraint
|
|
{
|
|
public string $message = 'person_identifier.This identifier must be set';
|
|
|
|
public function getTargets(): string
|
|
{
|
|
return self::PROPERTY_CONSTRAINT;
|
|
}
|
|
}
|