. */ declare(strict_types=1); namespace App\Validator\Constraints; use Symfony\Component\Validator\Constraint; /** * A constraint "dummy" to validate the PartLot. * We need to access services in our Validator, so we can not use a simple callback on PartLot. */ #[\Attribute(\Attribute::TARGET_CLASS)] class ValidPartLot extends Constraint { public function getTargets(): string { return self::CLASS_CONSTRAINT; } }