public function __construct(Reader
$reader = null
) { $this->reader =
$reader;
} public function loadClassMetadata(ClassMetadata
$metadata): bool
{ $reflClass =
$metadata->
getReflectionClass();
$className =
$reflClass->name;
$success = false;
foreach ($this->
getAnnotations($reflClass) as $constraint) { if ($constraint instanceof GroupSequence
) { $metadata->
setGroupSequence($constraint->groups
);
} elseif ($constraint instanceof GroupSequenceProvider
) { $metadata->
setGroupSequenceProvider(true
);
} elseif ($constraint instanceof Constraint
) { $metadata->
addConstraint($constraint);
} $success = true;
}