return $this->metadataFactory->
getMetadataFor($object);
} public function hasMetadataFor(mixed
$object): bool
{ return $this->metadataFactory->
hasMetadataFor($object);
} public function validate(mixed
$value, Constraint|array
$constraints = null, string|GroupSequence|array
$groups = null
): ConstraintViolationListInterface
{ return $this->
startContext($value) ->
validate($value,
$constraints,
$groups) ->
getViolations();
} public function validateProperty(object
$object, string
$propertyName, string|GroupSequence|array
$groups = null
): ConstraintViolationListInterface
{ return $this->
startContext($object) ->
validateProperty($object,
$propertyName,
$groups) ->
getViolations();
} public function validatePropertyValue(object|string
$objectOrClass, string
$propertyName, mixed
$value, string|GroupSequence|array
$groups = null
): ConstraintViolationListInterface
{