class ClassMetadata implements ClassMetadataInterface
{@inheritdoc}
$name | |||
AttributeMetadataInterface[] | $attributesMetadata | ||
ClassDiscriminatorMapping|null | $classDiscriminatorMapping |
__construct(string $class, ClassDiscriminatorMapping $classDiscriminatorMapping = null) Constructs a metadata for the given class. | ||
string | getName() Returns the name of the backing PHP class. | |
addAttributeMetadata(AttributeMetadataInterface $attributeMetadata) Adds an {@link AttributeMetadataInterface}. | ||
AttributeMetadataInterface[] | getAttributesMetadata() Gets the list of {@link AttributeMetadataInterface}. | |
merge(ClassMetadataInterface $classMetadata) Merges a {@link ClassMetadataInterface} in the current one. | ||
ReflectionClass | getReflectionClass() Returns a {@link \ReflectionClass} instance for this class. | |
ClassDiscriminatorMapping|null | getClassDiscriminatorMapping() | |
setClassDiscriminatorMapping(ClassDiscriminatorMapping $mapping = null) | ||
string[] | __sleep() Returns the names of the properties that should be serialized. |
Constructs a metadata for the given class.
string | $class | |
ClassDiscriminatorMapping | $classDiscriminatorMapping |
Returns the name of the backing PHP class.
string | The name of the backing class |
Adds an {@link AttributeMetadataInterface}.
AttributeMetadataInterface | $attributeMetadata |
Gets the list of {@link AttributeMetadataInterface}.
AttributeMetadataInterface[] |
Merges a {@link ClassMetadataInterface} in the current one.
ClassMetadataInterface | $classMetadata |
Returns a {@link \ReflectionClass} instance for this class.
ReflectionClass |
ClassDiscriminatorMapping|null |
ClassDiscriminatorMapping | $mapping |
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/ClassMetadata.html