Class

Symfony\Component\Validator\Mapping\BlackholeMetadataFactory

class BlackholeMetadataFactory extends BlackHoleMetadataFactory

Alias of {@link Factory\BlackHoleMetadataFactory}.

Methods

MetadataInterface getMetadataFor(mixed $value)

Returns the metadata for the given value.

from BlackHoleMetadataFactory
Boolean hasMetadataFor(mixed $value)

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

from BlackHoleMetadataFactory

Details

public MetadataInterface getMetadataFor(mixed $value)

Returns the metadata for the given value.

Parameters

mixed $value Some value

Return Value

MetadataInterface The metadata for the value

Exceptions

NoSuchMetadataException If no metadata exists for the given value

public Boolean hasMetadataFor(mixed $value)

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

Parameters

mixed $value Some value

Return Value

Boolean Whether metadata can be returned for that value