You are here

interface AttributeMetadataInterface in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/serializer/Mapping/AttributeMetadataInterface.php \Symfony\Component\Serializer\Mapping\AttributeMetadataInterface

Stores metadata needed for serializing and deserializing attributes.

Primarily, the metadata stores serialization groups.

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

Hierarchy

Expanded class hierarchy of AttributeMetadataInterface

All classes that implement AttributeMetadataInterface

1 file declares its use of AttributeMetadataInterface
AbstractNormalizer.php in vendor/symfony/serializer/Normalizer/AbstractNormalizer.php

File

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

Namespace

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

  /**
   * Gets the attribute name.
   *
   * @return string
   */
  public function getName();

  /**
   * Adds this attribute to the given group.
   *
   * @param string $group
   */
  public function addGroup($group);

  /**
   * Gets groups of this attribute.
   *
   * @return string[]
   */
  public function getGroups();

  /**
   * Merges an {@see AttributeMetadataInterface} with in the current one.
   *
   * @param AttributeMetadataInterface $attributeMetadata
   */
  public function merge(AttributeMetadataInterface $attributeMetadata);

}

Members

Namesort descending Modifiers Type Description Overrides
AttributeMetadataInterface::addGroup public function Adds this attribute to the given group. 1
AttributeMetadataInterface::getGroups public function Gets groups of this attribute. 1
AttributeMetadataInterface::getName public function Gets the attribute name. 1
AttributeMetadataInterface::merge public function Merges an { 1