interface PropertyMetadataInterface in Plug 7
Same name in this branch
- 7 lib/Symfony/validator/Symfony/Component/Validator/PropertyMetadataInterface.php \Symfony\Component\Validator\PropertyMetadataInterface
- 7 lib/Symfony/validator/Symfony/Component/Validator/Mapping/PropertyMetadataInterface.php \Symfony\Component\Validator\Mapping\PropertyMetadataInterface
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>
Hierarchy
- interface \Symfony\Component\Validator\MetadataInterface
- interface \Symfony\Component\Validator\PropertyMetadataInterface
Expanded class hierarchy of PropertyMetadataInterface
All classes that implement PropertyMetadataInterface
Deprecated
Deprecated since version 2.5, to be removed in Symfony 3.0. Use {@link Mapping\PropertyMetadataInterface} instead.
See also
1 file declares its use of PropertyMetadataInterface
- PropertyMetadataInterface.php in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Mapping/ PropertyMetadataInterface.php
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ PropertyMetadataInterface.php, line 30
Namespace
Symfony\Component\ValidatorView source
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);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MetadataInterface:: |
public | function | Implementation of the Visitor design pattern. | 1 |
MetadataInterface:: |
public | function | Returns all constraints for a given validation group. | 1 |
PropertyMetadataInterface:: |
public | function | Returns the name of the property. | 1 |
PropertyMetadataInterface:: |
public | function | Extracts the value of the property from the given container. | 3 |