class ClassMetadataFactory extends LazyLoadingMetadataFactory

Alias of {@link LazyLoadingMetadataFactory}.

Methods

__construct( LoaderInterface $loader = null, CacheInterface $cache = null)

Creates a new metadata factory.

getMetadataFor( mixed $value)

Returns the metadata for the given value.

bool
hasMetadataFor( mixed $value)

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

Details

in LazyLoadingMetadataFactory at line line 71
__construct( LoaderInterface $loader = null, CacheInterface $cache = null)

Creates a new metadata factory.

Parameters

LoaderInterface $loader The loader for configuring new metadata
CacheInterface $cache The cache for persisting metadata between multiple PHP requests

in LazyLoadingMetadataFactory at line line 92
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

in LazyLoadingMetadataFactory at line line 141
bool hasMetadataFor( mixed $value)

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