interface MetadataFactoryInterface

Returns {@link MetadataInterface} instances for values.

Methods

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

MetadataInterface getMetadataFor(mixed$value)

Returns the metadata for the given value.

Parameters

mixed $value

Return Value

MetadataInterface

Exceptions

NoSuchMetadataException If no metadata exists for the given value

bool hasMetadataFor(mixed$value)

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

Parameters

mixed $value

Return Value

bool