ClassMetadata::mergeConstraints()

mergeConstraints(ClassMetadata $source) Merges the constraints of the given metadata into this object. Parameters ClassMetadata $source The source metadata

ClassMetadata::getReflectionClass()

ReflectionClass getReflectionClass() Returns a {@link \ReflectionClass} instance for this class. Return Value ReflectionClass

ClassMetadata::getDefaultGroup()

string getDefaultGroup() Returns the name of the default group for this class. For each class, the group "Default" is an alias for the group "", where is the non-namespaced name of the class. All constraints implicitly or explicitly assigned to group "Default" belong to both of these groups, unless the class defines a group sequence. If a class defines a group sequence, validating the class in "Default" will validate the group sequence. The constraints assigned to "Default" can

ClassMetadata::getPropertyMetadata()

PropertyMetadataInterface[] getPropertyMetadata(string $property) Returns all metadata instances for the given named property. If your implementation does not support properties, simply throw an exception in this method (for example a BadMethodCallException). Parameters string $property The property name Return Value PropertyMetadataInterface[] A list of metadata instances. Empty if no metadata exists for the property.

ClassMetadata::getGroupSequence()

GroupSequence|null getGroupSequence() Returns the group sequence that overrides the "Default" group for this class. Return Value GroupSequence|null The group sequence or null

ClassMetadata::getName()

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

ClassMetadata::getConstrainedProperties()

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

ClassMetadata::addPropertyConstraint()

ClassMetadata addPropertyConstraint(string $property, Constraint $constraint) Adds a constraint to the given property. Parameters string $property The name of the property Constraint $constraint The constraint Return Value ClassMetadata This object

ClassMetadata::getClassName()

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

ClassMetadata::addPropertyConstraints()

ClassMetadata addPropertyConstraints(string $property, array $constraints) Parameters string $property array $constraints Return Value ClassMetadata