Mapping\ClassMetadataInterface (Component\Serializer)
Symfony\Component\Serializer\Mapping\ClassMetadataInterface
interface ClassMetadataInterface
Stores metadata needed for serializing and deserializing objects of specific class.
Primarily, the metadata stores the set of attributes to serialize or deserialize.
There may only exist one metadata for each attribute according to its name.
Methods
string | getName() Returns the name of the backing PHP class. | |
addAttributeMetadata(AttributeMetadataInterface $attributeMetadata) Adds an {@link AttributeMetadataInterface}. | ||
AttributeMetadataInterface[] | getAttributesMetadata() Gets the list of {@link AttributeMetadataInterface}. | |
merge(ClassMetadataInterface $classMetadata) Merges a {@link ClassMetadataInterface} in the current one. | ||
ReflectionClass | getReflectionClass() Returns a {@link \ReflectionClass} instance for this class. |
Details
public string getName()
Returns the name of the backing PHP class.
public addAttributeMetadata(AttributeMetadataInterface $attributeMetadata)
Adds an {@link AttributeMetadataInterface}.
public AttributeMetadataInterface[] getAttributesMetadata()
Gets the list of {@link AttributeMetadataInterface}.
public merge(ClassMetadataInterface $classMetadata)
Merges a {@link ClassMetadataInterface} in the current one.
public ReflectionClass getReflectionClass()
Returns a {@link \ReflectionClass} instance for this class.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/Serializer/Mapping/ClassMetadataInterface.html