interface MetadataFactoryInterface

Returns {@link MetadataInterface} instances for values.

Methods

getMetadataFor(mixed $value)

Returns the metadata for the given value.

Boolean
hasMetadataFor(mixed $value)

Returns whether metadata exists for the given value.

Details

at line line 30
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 value.

at line line 39
Boolean hasMetadataFor(mixed $value)

Returns whether metadata exists for the given value.

Parameters

mixed $value Some value.

Return Value

Boolean Whether metadata exists for the value.