class MultiAreas implements DynamicMetadataInterface (View source)

Methods

__construct(array $areas)

No description

static string
getName()

No description

array
getAreas()

Get all Areas.

getAreasByName(string $name)

Gets an array of Areas with a specific name.

getFirstAreaByName(string $name)

Gets the first Area with a specific name (all others have no meaning currently).

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

__construct(array $areas)

No description

Parameters

array $areas

static string getName()

No description

Return Value

string

The name of the metadata

array getAreas()

Get all Areas.

Return Value

array

DynamicMetadataInterface[]|null getAreasByName(string $name)

Gets an array of Areas with a specific name.

Parameters

string $name

The area name to look up

Return Value

DynamicMetadataInterface[]|null

DynamicMetadataInterface|null getFirstAreaByName(string $name)

Gets the first Area with a specific name (all others have no meaning currently).

Parameters

string $name

The area name to look up

Return Value

DynamicMetadataInterface|null

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