ClassMetadataInterface

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}.

登录查看完整内容