Returns {@link MetadataInterface} instances for values.
@author Bernhard Schussek <bschussek@gmail.com>
Expanded class hierarchy of MetadataFactoryInterface
All classes that implement MetadataFactoryInterface
interface MetadataFactoryInterface {
/**
* Returns the metadata for the given value.
*
* @param mixed $value Some value.
*
* @return MetadataInterface The metadata for the value.
*
* @throws Exception\NoSuchMetadataException If no metadata exists for the value.
*/
public function getMetadataFor($value);
/**
* Returns whether metadata exists for the given value.
*
* @param mixed $value Some value.
*
* @return Boolean Whether metadata exists for the value.
*/
public function hasMetadataFor($value);
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MetadataFactoryInterface:: |
public | function | Returns the metadata for the given value. | 3 |
MetadataFactoryInterface:: |
public | function | Returns whether metadata exists for the given value. | 3 |