A container for validation metadata of a property.
What exactly you define as "property" is up to you. The validator expects implementations of {@link MetadataInterface} that contain constraints and optionally a list of named properties that also have constraints (and may have further sub properties). Such properties are mapped by implementations of this interface.
@author Bernhard Schussek <bschussek@gmail.com>
Expanded class hierarchy of PropertyMetadataInterface
All classes that implement PropertyMetadataInterface
interface PropertyMetadataInterface extends MetadataInterface {
/**
* Returns the name of the property.
*
* @return string The property name.
*/
public function getPropertyName();
/**
* Extracts the value of the property from the given container.
*
* @param mixed $containingValue The container to extract the property value from.
*
* @return mixed The value of the property.
*/
public function getPropertyValue($containingValue);
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MetadataInterface:: |
public | function | Implementation of the Visitor design pattern. | 3 |
MetadataInterface:: |
public | function | Returns all constraints for a given validation group. | 1 |
PropertyMetadataInterface:: |
public | function | Returns the name of the property. | 2 |
PropertyMetadataInterface:: |
public | function | Extracts the value of the property from the given container. | 4 |