public function ClassMetadata::addAttributeMetadata in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/serializer/Mapping/ClassMetadata.php \Symfony\Component\Serializer\Mapping\ClassMetadata::addAttributeMetadata()
Adds an {@link AttributeMetadataInterface}.
Parameters
AttributeMetadataInterface $attributeMetadata:
Overrides ClassMetadataInterface::addAttributeMetadata
1 call to ClassMetadata::addAttributeMetadata()
- ClassMetadata::merge in vendor/
symfony/ serializer/ Mapping/ ClassMetadata.php - Merges a {@link ClassMetadataInterface} in the current one.
File
- vendor/
symfony/ serializer/ Mapping/ ClassMetadata.php, line 65
Class
- ClassMetadata
- @author Kévin Dunglas <dunglas@gmail.com>
Namespace
Symfony\Component\Serializer\MappingCode
public function addAttributeMetadata(AttributeMetadataInterface $attributeMetadata) {
$this->attributesMetadata[$attributeMetadata
->getName()] = $attributeMetadata;
}