interface PropertyMetadataContainerInterface

A container for {@link PropertyMetadataInterface} instances.

Methods

Boolean
hasPropertyMetadata(string $property)

Check if there's any metadata attached to the given named property.

getPropertyMetadata(string $property)

Returns all metadata instances for the given named property.

Details

at line line 28
Boolean hasPropertyMetadata(string $property)

Check if there's any metadata attached to the given named property.

Parameters

string $property The property name.

Return Value

Boolean

at line line 41
PropertyMetadataInterface[] getPropertyMetadata(string $property)

Returns all metadata instances for the given named property.

If your implementation does not support properties, simply throw an exception in this method (for example a BadMethodCallException).

Parameters

string $property The property name.

Return Value

PropertyMetadataInterface[] A list of metadata instances. Empty if no metadata exists for the property.