class MetadataDataSource extends Metadata

Represents the data source (list values) of a structured metadata list field. This is used in both 'set' and 'enum' field types. The datasource holds a list of the valid values to be used with the corresponding metadata field.

Methods

jsonSerialize()

No description

__construct(array $values)

The MetadataDataSource constructor.

getPropertyKeys()

Gets the keys for all the properties of this object.

setValues(array $values)

Sets entities for this data source.

getValues()

Gets entities of this data source.

Details

jsonSerialize()

__construct(array $values)

The MetadataDataSource constructor.

Parameters

Name Type Description
$values array

Exceptions

InvalidArgumentException

array getPropertyKeys()

Gets the keys for all the properties of this object.

Return Value

array

setValues(array $values)

Sets entities for this data source.

Parameters

Name Type Description
$values array

Exceptions

InvalidArgumentException

MetadataDataEntry[] getValues()

Gets entities of this data source.

Return Value

MetadataDataEntry[]