interface DynamicMetadataInterface (View source)

Marker interface to mark classes as dynamic metadata.

Methods

static string
getName()

No description

createFromJsonResponse(string|array $data, bool $isArray = false)

Create a DynamicMetadata from the JSON data.

mixed
getForJson()

Get the data, which should be json-fied later.

Details

static string getName()

No description

Return Value

string

The name of the metadata

static DynamicMetadataInterface createFromJsonResponse(string|array $data, bool $isArray = false)

Create a DynamicMetadata from the JSON data.

Parameters

string|array $data

JSON data

bool $isArray

If the data provided is already an array

Return Value

DynamicMetadataInterface

mixed getForJson()

Get the data, which should be json-fied later.

Return Value

mixed