You are here

public function AttributeMetadata::merge in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/serializer/Mapping/AttributeMetadata.php \Symfony\Component\Serializer\Mapping\AttributeMetadata::merge()

Merges an {

Parameters

AttributeMetadataInterface $attributeMetadata:

Overrides AttributeMetadataInterface::merge

See also

AttributeMetadataInterface} with in the current one.

File

vendor/symfony/serializer/Mapping/AttributeMetadata.php, line 78

Class

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

Namespace

Symfony\Component\Serializer\Mapping

Code

public function merge(AttributeMetadataInterface $attributeMetadata) {
  foreach ($attributeMetadata
    ->getGroups() as $group) {
    $this
      ->addGroup($group);
  }
}