class ClassMetadataFactory extends LazyLoadingMetadataFactory
deprecated
Alias of {@link LazyLoadingMetadataFactory}.
__construct(LoaderInterface $loader = null, CacheInterface $cache = null) Creates a new metadata factory. | from LazyLoadingMetadataFactory | |
MetadataInterface | getMetadataFor(mixed $value) Returns the metadata for the given value. | from LazyLoadingMetadataFactory |
bool | hasMetadataFor(mixed $value) Returns whether the class is able to return metadata for the given value. | from LazyLoadingMetadataFactory |
Creates a new metadata factory.
LoaderInterface | $loader | The loader for configuring new metadata |
CacheInterface | $cache | The cache for persisting metadata between multiple PHP requests |
Returns the metadata for the given value.
mixed | $value | Some value |
MetadataInterface | The metadata for the value |
NoSuchMetadataException | If no metadata exists for the given value |
Returns whether the class is able to return metadata for the given value.
mixed | $value | Some value |
bool | Whether metadata can be returned for that value |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/Validator/Mapping/ClassMetadataFactory.html