interface PropertyMetadataInterface in Zircon Profile 8
Same name in this branch
- 8 vendor/symfony/validator/PropertyMetadataInterface.php \Symfony\Component\Validator\PropertyMetadataInterface
- 8 vendor/symfony/validator/Mapping/PropertyMetadataInterface.php \Symfony\Component\Validator\Mapping\PropertyMetadataInterface
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/PropertyMetadataInterface.php \Symfony\Component\Validator\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
since version 2.5, to be removed in 3.0. Use {@link Mapping\PropertyMetadataInterface} instead.
See also
1 file declares its use of PropertyMetadataInterface
- PropertyMetadataInterface.php in vendor/
symfony/ validator/ Mapping/ PropertyMetadataInterface.php
File
- vendor/
symfony/ validator/ PropertyMetadataInterface.php, line 29
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. | 2 |
MetadataInterface:: |
public | function | Returns all constraints for a given validation group. | 2 |
PropertyMetadataInterface:: |
public | function | Returns the name of the property. | 1 |
PropertyMetadataInterface:: |
public | function | Extracts the value of the property from the given container. | 3 |