class KeySerializer implements JsonSerializable (View source)

Responsible for serializing an attribute key for use in the key selector component.

Properties

protected Key $key
protected AttributeValueInterface|null $value
protected bool $hasMultipleValues

Check whether we need a specific display for this attribute form or not.

Methods

__construct(Key $key, AttributeValueInterface|null $value = null)

No description

bool
hasMultipleValues()

No description

void
setMultipleValues(bool $hasMultipleValues)

No description

getAssets()

No description

array
jsonSerialize()

No description

Details

__construct(Key $key, AttributeValueInterface|null $value = null)

No description

Parameters

Key $key
AttributeValueInterface|null $value

bool hasMultipleValues()

No description

Return Value

bool

void setMultipleValues(bool $hasMultipleValues)

No description

Parameters

bool $hasMultipleValues

Return Value

void

getAssets()

No description

array jsonSerialize()

No description

Return Value

array