return $data;
} private function getPropertyData(ClassMetadataInterface
$classMetadata, string
$constrainedProperty): array
{ $data =
[];
$propertyMetadata =
$classMetadata->
getPropertyMetadata($constrainedProperty);
foreach ($propertyMetadata as $metadata) { $autoMapingStrategy = 'Not supported';
if ($metadata instanceof GenericMetadata
) { $autoMapingStrategy =
match ($metadata->
getAutoMappingStrategy()) { AutoMappingStrategy::ENABLED => 'Enabled',
AutoMappingStrategy::DISABLED => 'Disabled',
AutoMappingStrategy::NONE => 'None',
};
} $traversalStrategy = 'None';
if (TraversalStrategy::TRAVERSE ===
$metadata->
getTraversalStrategy()) { $traversalStrategy = 'Traverse';
} if (TraversalStrategy::IMPLICIT ===
$metadata->
getTraversalStrategy()) { $traversalStrategy = 'Implicit';
}