interface MetadataInterface
Same name in this branch
- 11.1.x vendor/open-telemetry/api/Baggage/MetadataInterface.php \OpenTelemetry\API\Baggage\MetadataInterface
A container for validation metadata.
Most importantly, the metadata stores the constraints against which an object and its properties should be validated.
Additionally, the metadata stores whether objects 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
Expanded class hierarchy of MetadataInterface
All classes that implement MetadataInterface
See also
12 files declare their use of MetadataInterface
- BlackHoleMetadataFactory.php in vendor/
symfony/ validator/ Mapping/ Factory/ BlackHoleMetadataFactory.php - ConstraintValidatorTestCase.php in vendor/
symfony/ validator/ Test/ ConstraintValidatorTestCase.php - ExecutionContext.php in vendor/
symfony/ validator/ Context/ ExecutionContext.php - ExecutionContext.php in core/
lib/ Drupal/ Core/ Validation/ ExecutionContext.php - ExecutionContextInterface.php in vendor/
symfony/ validator/ Context/ ExecutionContextInterface.php
File
-
vendor/
symfony/ validator/ Mapping/ MetadataInterface.php, line 31
Namespace
Symfony\Component\Validator\MappingView source
interface MetadataInterface {
/**
* Returns the strategy for cascading objects.
*
* @see CascadingStrategy
*/
public function getCascadingStrategy() : int;
/**
* Returns the strategy for traversing traversable objects.
*
* @see TraversalStrategy
*/
public function getTraversalStrategy() : int;
/**
* Returns all constraints of this element.
*
* @return Constraint[]
*/
public function getConstraints() : array;
/**
* Returns all constraints for a given validation group.
*
* @param string $group The validation group
*
* @return Constraint[]
*/
public function findConstraints(string $group) : array;
}
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 |