interface MetadataFactoryInterface in Plug 7
Same name in this branch
- 7 lib/Symfony/validator/Symfony/Component/Validator/MetadataFactoryInterface.php \Symfony\Component\Validator\MetadataFactoryInterface
- 7 lib/Symfony/validator/Symfony/Component/Validator/Mapping/Factory/MetadataFactoryInterface.php \Symfony\Component\Validator\Mapping\Factory\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
Deprecated since version 2.5, to be removed in Symfony 3.0. Use {@link Mapping\Factory\MetadataFactoryInterface} instead.
12 files declare their use of MetadataFactoryInterface
- Abstract2Dot5ApiTest.php in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Validator/ Abstract2Dot5ApiTest.php - AbstractLegacyApiTest.php in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Validator/ AbstractLegacyApiTest.php - FakeMetadataFactory.php in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Fixtures/ FakeMetadataFactory.php - LegacyExecutionContext.php in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Context/ LegacyExecutionContext.php - LegacyExecutionContextFactory.php in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Context/ LegacyExecutionContextFactory.php
File
- lib/
Symfony/ validator/ Symfony/ Component/ 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. | 4 |
MetadataFactoryInterface:: |
public | function | Returns whether the class is able to return metadata for the given value. | 4 |