interface PropertyMetadataInterface
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.
@author Bernhard Schussek <bschussek@gmail.com>
Hierarchy
- interface \Symfony\Component\Validator\Mapping\MetadataInterface
- interface \Symfony\Component\Validator\Mapping\PropertyMetadataInterface extends \Symfony\Component\Validator\Mapping\MetadataInterface
Expanded class hierarchy of PropertyMetadataInterface
All classes that implement PropertyMetadataInterface
See also
3 files declare their use of PropertyMetadataInterface
- ExecutionContext.php in vendor/
symfony/ validator/ Context/ ExecutionContext.php - ExecutionContext.php in core/
lib/ Drupal/ Core/ Validation/ ExecutionContext.php - RecursiveContextualValidator.php in vendor/
symfony/ validator/ Validator/ RecursiveContextualValidator.php
File
-
vendor/
symfony/ validator/ Mapping/ PropertyMetadataInterface.php, line 30
Namespace
Symfony\Component\Validator\MappingView source
interface PropertyMetadataInterface extends MetadataInterface {
/**
* Returns the name of the property.
*/
public function getPropertyName() : string;
/**
* Extracts the value of the property from the given container.
*/
public function getPropertyValue(mixed $containingValue) : mixed;
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
MetadataInterface::findConstraints | public | function | Returns all constraints for a given validation group. | 2 |
MetadataInterface::getCascadingStrategy | public | function | Returns the strategy for cascading objects. | 2 |
MetadataInterface::getConstraints | public | function | Returns all constraints of this element. | 2 |
MetadataInterface::getTraversalStrategy | public | function | Returns the strategy for traversing traversable objects. | 2 |
PropertyMetadataInterface::getPropertyName | public | function | Returns the name of the property. | 1 |
PropertyMetadataInterface::getPropertyValue | public | function | Extracts the value of the property from the given container. | 2 |