Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/validator/Mapping/Factory/MetadataFactoryInterface.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 <?php | |
2 | |
3 /* | |
4 * This file is part of the Symfony package. | |
5 * | |
6 * (c) Fabien Potencier <fabien@symfony.com> | |
7 * | |
8 * For the full copyright and license information, please view the LICENSE | |
9 * file that was distributed with this source code. | |
10 */ | |
11 | |
12 namespace Symfony\Component\Validator\Mapping\Factory; | |
13 | |
14 use Symfony\Component\Validator\Exception\NoSuchMetadataException; | |
15 use Symfony\Component\Validator\Mapping\MetadataInterface; | |
16 | |
17 /** | |
18 * Returns {@link \Symfony\Component\Validator\Mapping\MetadataInterface} instances for values. | |
19 * | |
20 * @author Bernhard Schussek <bschussek@gmail.com> | |
21 */ | |
22 interface MetadataFactoryInterface | |
23 { | |
24 /** | |
25 * Returns the metadata for the given value. | |
26 * | |
27 * @param mixed $value Some value | |
28 * | |
29 * @return MetadataInterface The metadata for the value | |
30 * | |
31 * @throws NoSuchMetadataException If no metadata exists for the given value | |
32 */ | |
33 public function getMetadataFor($value); | |
34 | |
35 /** | |
36 * Returns whether the class is able to return metadata for the given value. | |
37 * | |
38 * @param mixed $value Some value | |
39 * | |
40 * @return bool Whether metadata can be returned for that value | |
41 */ | |
42 public function hasMetadataFor($value); | |
43 } |