class AttributeMetadata implements AttributeMetadataInterface
{@inheritdoc}
| $name | |||
| $groups | |||
| int|null | $maxDepth |
| __construct(string $name) | ||
| string | getName() Gets the attribute name. | |
| addGroup(string $group) Adds this attribute to the given group. | ||
| string[] | getGroups() Gets groups of this attribute. | |
| setMaxDepth(int|null $maxDepth) Sets the serialization max depth for this attribute. | ||
| int|null | getMaxDepth() Gets the serialization max depth for this attribute. | |
| merge(AttributeMetadataInterface $attributeMetadata) Merges an {see AttributeMetadataInterface} with in the current one. | ||
| string[] | __sleep() Returns the names of the properties that should be serialized. |
| string | $name |
Gets the attribute name.
| string |
Adds this attribute to the given group.
| string | $group |
Gets groups of this attribute.
| string[] |
Sets the serialization max depth for this attribute.
| int|null | $maxDepth |
Gets the serialization max depth for this attribute.
| int|null |
Merges an {see AttributeMetadataInterface} with in the current one.
| AttributeMetadataInterface | $attributeMetadata |
Returns the names of the properties that should be serialized.
| string[] |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Serializer/Mapping/AttributeMetadata.html