ClassMetadataInterface::getConstrainedProperties()

string[] getConstrainedProperties() Returns the names of all constrained properties. Return Value string[] A list of property names

ClassMetadataInterface::getClassName()

string getClassName() Returns the name of the backing PHP class. Return Value string The name of the backing class

ClassMetadataInterface::getAttributesMetadata()

AttributeMetadataInterface[] getAttributesMetadata() Gets the list of {@link AttributeMetadataInterface}. Return Value AttributeMetadataInterface[]

ClassMetadataInterface::addAttributeMetadata()

addAttributeMetadata(AttributeMetadataInterface $attributeMetadata) Adds an {@link AttributeMetadataInterface}. Parameters AttributeMetadataInterface $attributeMetadata

ClassMetadataInterface

interface ClassMetadataInterface implements MetadataInterface Stores all metadata needed for validating objects of specific class. Most importantly, the metadata stores the constraints against which an object and its properties should be validated. Additionally, the metadata stores whether the "Default" group is overridden by a group sequence for that class and whether instances of that class should be traversed or not. Methods int getCascadingStrategy() Returns the strategy for cascadin

ClassMetadataInterface

interface ClassMetadataInterface Stores metadata needed for serializing and deserializing objects of specific class. Primarily, the metadata stores the set of attributes to serialize or deserialize. There may only exist one metadata for each attribute according to its name. Methods string getName() Returns the name of the backing PHP class. addAttributeMetadata(AttributeMetadataInterface $attributeMetadata) Adds an {@link AttributeMetadataInterface}. AttributeMetadataInterface[]

ClassMetadataFactoryInterface::hasMetadataFor()

bool hasMetadataFor(mixed $value) Checks if class has metadata. Parameters mixed $value Return Value bool

ClassMetadataFactoryInterface::getMetadataFor()

ClassMetadataInterface getMetadataFor(string|object $value) If the method was called with the same class name (or an object of that class) before, the same metadata instance is returned. If the factory was configured with a cache, this method will first look for an existing metadata instance in the cache. If an existing instance is found, it will be returned without further ado. Otherwise, a new metadata instance is created. If the factory was configured with a loader, the metad

ClassMetadataFactoryInterface

interface ClassMetadataFactoryInterface Returns a {see ClassMetadataInterface}. Methods ClassMetadataInterface getMetadataFor(string|object $value) If the method was called with the same class name (or an object of that class) before, the same metadata instance is returned. bool hasMetadataFor(mixed $value) Checks if class has metadata. Details ClassMetadataInterface getMetadataFor(string|object $value) If the method was called with the sa

ClassMetadataFactory::hasMetadataFor()

bool hasMetadataFor(mixed $value) Checks if class has metadata. Parameters mixed $value Return Value bool