4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Validator\Mapping\Factory;
15 * Metadata factory that does not store metadata.
17 * This implementation is useful if you want to validate values against
18 * constraints only and you don't need to add constraints to classes and
21 * @author Fabien Potencier <fabien@symfony.com>
23 class BlackHoleMetadataFactory implements MetadataFactoryInterface
28 public function getMetadataFor($value)
30 throw new \LogicException('This class does not support metadata.');
36 public function hasMetadataFor($value)