You are here

public function MetadataFactoryInterface::hasMetadataFor in Plug 7

Returns whether the class is able to return metadata for the given value.

Parameters

mixed $value Some value:

Return value

bool Whether metadata can be returned for that value

4 methods override MetadataFactoryInterface::hasMetadataFor()
BlackHoleMetadataFactory::hasMetadataFor in lib/Symfony/validator/Symfony/Component/Validator/Mapping/Factory/BlackHoleMetadataFactory.php
Returns whether the class is able to return metadata for the given value.
FakeMetadataFactory::hasMetadataFor in lib/Symfony/validator/Symfony/Component/Validator/Tests/Fixtures/FakeMetadataFactory.php
Returns whether the class is able to return metadata for the given value.
LazyLoadingMetadataFactory::hasMetadataFor in lib/Symfony/validator/Symfony/Component/Validator/Mapping/Factory/LazyLoadingMetadataFactory.php
Returns whether the class is able to return metadata for the given value.
RecursiveValidator::hasMetadataFor in lib/Symfony/validator/Symfony/Component/Validator/Validator/RecursiveValidator.php
Returns whether the class is able to return metadata for the given value.

File

lib/Symfony/validator/Symfony/Component/Validator/MetadataFactoryInterface.php, line 42

Class

MetadataFactoryInterface
Returns {@link MetadataInterface} instances for values.

Namespace

Symfony\Component\Validator

Code

public function hasMetadataFor($value);