You are here

public function RecursiveValidator::getMetadataFor in Plug 7

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

lib/Symfony/validator/Symfony/Component/Validator/Validator/RecursiveValidator.php, line 97

Class

RecursiveValidator
Recursive implementation of {@link ValidatorInterface}.

Namespace

Symfony\Component\Validator\Validator

Code

public function getMetadataFor($object) {
  return $this->metadataFactory
    ->getMetadataFor($object);
}