class CustomMetadataFactory implements MetadataFactoryInterface

Class CustomMetadataFactory.

Methods

setVersion(string|null $version)

No description

setListener(LoaderListenerInterface $listener)

No description

MetadataInterface
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

at line 31
setVersion(string|null $version)

Parameters

string|null $version

at line 39
setListener(LoaderListenerInterface $listener)

Parameters

LoaderListenerInterface $listener

at line 53
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

at line 79
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