interface MetadataFactoryInterface
Returns {@link MetadataInterface} instances for values.
@author Bernhard Schussek <bschussek@gmail.com>
Hierarchy
- interface \Symfony\Component\Validator\Mapping\Factory\MetadataFactoryInterface
Expanded class hierarchy of MetadataFactoryInterface
All classes that implement MetadataFactoryInterface
6 files declare their use of MetadataFactoryInterface
- DebugCommand.php in vendor/
symfony/ validator/ Command/ DebugCommand.php - RecursiveContextualValidator.php in vendor/
symfony/ validator/ Validator/ RecursiveContextualValidator.php - RecursiveContextualValidator.php in core/
lib/ Drupal/ Core/ TypedData/ Validation/ RecursiveContextualValidator.php - RecursiveValidator.php in vendor/
symfony/ validator/ Validator/ RecursiveValidator.php - ValidatorBuilder.php in vendor/
symfony/ validator/ ValidatorBuilder.php
File
-
vendor/
symfony/ validator/ Mapping/ Factory/ MetadataFactoryInterface.php, line 22
Namespace
Symfony\Component\Validator\Mapping\FactoryView source
interface MetadataFactoryInterface {
/**
* Returns the metadata for the given value.
*
* @throws NoSuchMetadataException If no metadata exists for the given value
*/
public function getMetadataFor(mixed $value) : MetadataInterface;
/**
* Returns whether the class is able to return metadata for the given value.
*/
public function hasMetadataFor(mixed $value) : bool;
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
MetadataFactoryInterface::getMetadataFor | public | function | Returns the metadata for the given value. | 5 |
MetadataFactoryInterface::hasMetadataFor | public | function | Returns whether the class is able to return metadata for the given value. | 5 |