You are here

interface ClassMetadataInterface in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/validator/Mapping/ClassMetadataInterface.php \Symfony\Component\Validator\Mapping\ClassMetadataInterface
  2. 8 vendor/symfony/serializer/Mapping/ClassMetadataInterface.php \Symfony\Component\Serializer\Mapping\ClassMetadataInterface
Same name and namespace in other branches
  1. 8.0 vendor/symfony/serializer/Mapping/ClassMetadataInterface.php \Symfony\Component\Serializer\Mapping\ClassMetadataInterface

Stores metadata needed for serializing and deserializing objects of specific class.

Primarily, the metadata stores the list of attributes to serialize or deserialize.

@author Kévin Dunglas <dunglas@gmail.com>

Hierarchy

Expanded class hierarchy of ClassMetadataInterface

All classes that implement ClassMetadataInterface

6 files declare their use of ClassMetadataInterface
AnnotationLoader.php in vendor/symfony/serializer/Mapping/Loader/AnnotationLoader.php
ClassMetadataFactoryInterface.php in vendor/symfony/serializer/Mapping/Factory/ClassMetadataFactoryInterface.php
LoaderChain.php in vendor/symfony/serializer/Mapping/Loader/LoaderChain.php
LoaderInterface.php in vendor/symfony/serializer/Mapping/Loader/LoaderInterface.php
XmlFileLoader.php in vendor/symfony/serializer/Mapping/Loader/XmlFileLoader.php

... See full list

File

vendor/symfony/serializer/Mapping/ClassMetadataInterface.php, line 21

Namespace

Symfony\Component\Serializer\Mapping
View source
interface ClassMetadataInterface {

  /**
   * Returns the name of the backing PHP class.
   *
   * @return string The name of the backing class.
   */
  public function getName();

  /**
   * Adds an {@link AttributeMetadataInterface}.
   *
   * @param AttributeMetadataInterface $attributeMetadata
   */
  public function addAttributeMetadata(AttributeMetadataInterface $attributeMetadata);

  /**
   * Gets the list of {@link AttributeMetadataInterface}.
   *
   * @return AttributeMetadataInterface[]
   */
  public function getAttributesMetadata();

  /**
   * Merges a {@link ClassMetadataInterface} in the current one.
   *
   * @param ClassMetadataInterface $classMetadata
   */
  public function merge(ClassMetadataInterface $classMetadata);

  /**
   * Returns a {@link \ReflectionClass} instance for this class.
   *
   * @return \ReflectionClass
   */
  public function getReflectionClass();

}

Members

Namesort descending Modifiers Type Description Overrides
ClassMetadataInterface::addAttributeMetadata public function Adds an {@link AttributeMetadataInterface}. 1
ClassMetadataInterface::getAttributesMetadata public function Gets the list of {@link AttributeMetadataInterface}. 1
ClassMetadataInterface::getName public function Returns the name of the backing PHP class. 1
ClassMetadataInterface::getReflectionClass public function Returns a {@link \ReflectionClass} instance for this class. 1
ClassMetadataInterface::merge public function Merges a {@link ClassMetadataInterface} in the current one. 1