function DebugCommand::getAttributesData
Return value
array<string, array<string, mixed>>
1 call to DebugCommand::getAttributesData()
- DebugCommand::dumpSerializerDataForClass in vendor/
symfony/ serializer/ Command/ DebugCommand.php
File
-
vendor/
symfony/ serializer/ Command/ DebugCommand.php, line 95
Class
- DebugCommand
- A console command to debug Serializer information.
Namespace
Symfony\Component\Serializer\CommandCode
private function getAttributesData(ClassMetadataInterface $classMetadata) : array {
$data = [];
foreach ($classMetadata->getAttributesMetadata() as $attributeMetadata) {
$data[$attributeMetadata->getName()] = [
'groups' => $attributeMetadata->getGroups(),
'maxDepth' => $attributeMetadata->getMaxDepth(),
'serializedName' => $attributeMetadata->getSerializedName(),
'serializedPath' => $attributeMetadata->getSerializedPath() ? (string) $attributeMetadata->getSerializedPath() : null,
'ignore' => $attributeMetadata->isIgnored(),
'normalizationContexts' => $attributeMetadata->getNormalizationContexts(),
'denormalizationContexts' => $attributeMetadata->getDenormalizationContexts(),
];
}
return $data;
}