public function AttributeMetadata::addGroup in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/serializer/Mapping/AttributeMetadata.php \Symfony\Component\Serializer\Mapping\AttributeMetadata::addGroup()
Adds this attribute to the given group.
Parameters
string $group:
Overrides AttributeMetadataInterface::addGroup
1 call to AttributeMetadata::addGroup()
- AttributeMetadata::merge in vendor/
symfony/ serializer/ Mapping/ AttributeMetadata.php - Merges an {
File
- vendor/
symfony/ serializer/ Mapping/ AttributeMetadata.php, line 60
Class
- AttributeMetadata
- @author Kévin Dunglas <dunglas@gmail.com>
Namespace
Symfony\Component\Serializer\MappingCode
public function addGroup($group) {
if (!in_array($group, $this->groups)) {
$this->groups[] = $group;
}
}