MetadataFactoryInterface
in
Returns {@link \Symfony\Component\Validator\Mapping\MetadataInterface} instances for values.
Tags
Table of Contents
- getMetadataFor() : MetadataInterface
- Returns the metadata for the given value.
- hasMetadataFor() : bool
- Returns whether the class is able to return metadata for the given value.
Methods
getMetadataFor()
Returns the metadata for the given value.
public
getMetadataFor(mixed $value) : MetadataInterface
Parameters
- $value : mixed
-
Some value
Tags
Return values
MetadataInterface —The metadata for the value
hasMetadataFor()
Returns whether the class is able to return metadata for the given value.
public
hasMetadataFor(mixed $value) : bool
Parameters
- $value : mixed
-
Some value
Return values
bool —Whether metadata can be returned for that value