PropertyMetadataInterface
interface PropertyMetadataInterface implements MetadataInterface
Stores all metadata needed for validating the value of a class property.
Most importantly, the metadata stores the constraints against which the property's value should be validated.
Additionally, the metadata stores whether objects stored in the property should be validated against their class' metadata and whether traversable objects should be traversed or not.
Methods
Returns the strategy for traversing traversable objects.
Returns all constraints for a given validation group.
Returns the name of the property.
Extracts the value of the property from the given container.
Details
in MetadataInterface at line line 42
int
getCascadingStrategy()
Returns the strategy for cascading objects.
in MetadataInterface at line line 51
int
getTraversalStrategy()
Returns the strategy for traversing traversable objects.
in MetadataInterface at line line 58
Constraint[]
getConstraints()
Returns all constraints of this element.
in MetadataInterface at line line 67
Constraint[]
findConstraints(string $group)
Returns all constraints for a given validation group.
at line line 39
string
getPropertyName()
Returns the name of the property.
at line line 48
mixed
getPropertyValue(mixed $containingValue)
Extracts the value of the property from the given container.