Chris@0: Chris@0: * Chris@0: * For the full copyright and license information, please view the LICENSE Chris@0: * file that was distributed with this source code. Chris@0: */ Chris@0: Chris@0: namespace Symfony\Component\Serializer\Mapping; Chris@0: Chris@0: /** Chris@0: * Stores metadata needed for serializing and deserializing objects of specific class. Chris@0: * Chris@0: * Primarily, the metadata stores the set of attributes to serialize or deserialize. Chris@0: * Chris@0: * There may only exist one metadata for each attribute according to its name. Chris@0: * Chris@0: * @internal Chris@0: * Chris@0: * @author Kévin Dunglas Chris@0: */ Chris@0: interface ClassMetadataInterface Chris@0: { Chris@0: /** Chris@0: * Returns the name of the backing PHP class. Chris@0: * Chris@0: * @return string The name of the backing class Chris@0: */ Chris@0: public function getName(); Chris@0: Chris@0: /** Chris@0: * Adds an {@link AttributeMetadataInterface}. Chris@0: */ Chris@0: public function addAttributeMetadata(AttributeMetadataInterface $attributeMetadata); Chris@0: Chris@0: /** Chris@0: * Gets the list of {@link AttributeMetadataInterface}. Chris@0: * Chris@0: * @return AttributeMetadataInterface[] Chris@0: */ Chris@0: public function getAttributesMetadata(); Chris@0: Chris@0: /** Chris@0: * Merges a {@link ClassMetadataInterface} in the current one. Chris@0: */ Chris@16: public function merge(self $classMetadata); Chris@0: Chris@0: /** Chris@0: * Returns a {@link \ReflectionClass} instance for this class. Chris@0: * Chris@0: * @return \ReflectionClass Chris@0: */ Chris@0: public function getReflectionClass(); Chris@0: }