public function MetadataFactoryInterface::getMetadataFor in Plug 7
Returns the metadata for the given value.
Parameters
mixed $value Some value:
Return value
MetadataInterface The metadata for the value
Throws
Exception\NoSuchMetadataException If no metadata exists for the given value
4 methods override MetadataFactoryInterface::getMetadataFor()
- BlackHoleMetadataFactory::getMetadataFor in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Mapping/ Factory/ BlackHoleMetadataFactory.php - Returns the metadata for the given value.
- FakeMetadataFactory::getMetadataFor in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Fixtures/ FakeMetadataFactory.php - Returns the metadata for the given value.
- LazyLoadingMetadataFactory::getMetadataFor in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Mapping/ Factory/ LazyLoadingMetadataFactory.php - If the method was called with the same class name (or an object of that class) before, the same metadata instance is returned.
- RecursiveValidator::getMetadataFor in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Validator/ RecursiveValidator.php - Returns the metadata for the given value.
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ MetadataFactoryInterface.php, line 33
Class
- MetadataFactoryInterface
- Returns {@link MetadataInterface} instances for values.
Namespace
Symfony\Component\ValidatorCode
public function getMetadataFor($value);