You are here

public function BlackHoleMetadataFactory::getMetadataFor in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Mapping/Factory/BlackHoleMetadataFactory.php \Symfony\Component\Validator\Mapping\Factory\BlackHoleMetadataFactory::getMetadataFor()

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

Overrides MetadataFactoryInterface::getMetadataFor

File

vendor/symfony/validator/Mapping/Factory/BlackHoleMetadataFactory.php, line 28

Class

BlackHoleMetadataFactory
Metadata factory that does not store metadata.

Namespace

Symfony\Component\Validator\Mapping\Factory

Code

public function getMetadataFor($value) {
  throw new \LogicException('This class does not support metadata.');
}