interface MetadataFactoryInterface in Zircon Profile 8
Same name in this branch
- 8 vendor/symfony/validator/MetadataFactoryInterface.php \Symfony\Component\Validator\MetadataFactoryInterface
- 8 vendor/symfony/validator/Mapping/Factory/MetadataFactoryInterface.php \Symfony\Component\Validator\Mapping\Factory\MetadataFactoryInterface
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/MetadataFactoryInterface.php \Symfony\Component\Validator\MetadataFactoryInterface
Returns {@link MetadataInterface} instances for values.
@author Bernhard Schussek <bschussek@gmail.com>
Hierarchy
- interface \Symfony\Component\Validator\MetadataFactoryInterface
Expanded class hierarchy of MetadataFactoryInterface
All classes that implement MetadataFactoryInterface
Deprecated
since version 2.5, to be removed in 3.0. Use {@link Mapping\Factory\MetadataFactoryInterface} instead.
12 files declare their use of MetadataFactoryInterface
- Abstract2Dot5ApiTest.php in vendor/
symfony/ validator/ Tests/ Validator/ Abstract2Dot5ApiTest.php - AbstractLegacyApiTest.php in vendor/
symfony/ validator/ Tests/ Validator/ AbstractLegacyApiTest.php - FakeMetadataFactory.php in vendor/
symfony/ validator/ Tests/ Fixtures/ FakeMetadataFactory.php - LegacyExecutionContext.php in vendor/
symfony/ validator/ Context/ LegacyExecutionContext.php - LegacyExecutionContextFactory.php in vendor/
symfony/ validator/ Context/ LegacyExecutionContextFactory.php
File
- vendor/
symfony/ validator/ MetadataFactoryInterface.php, line 22
Namespace
Symfony\Component\ValidatorView source
interface MetadataFactoryInterface {
/**
* Returns the metadata for the given value.
*
* @param mixed $value Some value
*
* @return MetadataInterface The metadata for the value
*
* @throws Exception\NoSuchMetadataException If no metadata exists for the given value
*/
public function getMetadataFor($value);
/**
* Returns whether the class is able to return metadata for the given value.
*
* @param mixed $value Some value
*
* @return bool Whether metadata can be returned for that value
*/
public function hasMetadataFor($value);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MetadataFactoryInterface:: |
public | function | Returns the metadata for the given value. | 5 |
MetadataFactoryInterface:: |
public | function | Returns whether the class is able to return metadata for the given value. | 5 |