MultipleChoiceValue
in package
implements
BaseValueInterface
Read onlyYes
FinalYes
Table of Contents
Interfaces
- BaseValueInterface
- This models the smallest piece of data.
Properties
- $values : array<int, ValueOptionInterface>
Methods
- __construct() : mixed
- contains() : bool
- getDisplayValue() : string
- getIndex() : ValueOptionInterface|null
- getValue() : array<int, ValueOptionInterface>
Properties
$values
private
array<int, ValueOptionInterface>
$values
Methods
__construct()
public
__construct(ValueOptionInterface ...$values) : mixed
Parameters
- $values : ValueOptionInterface
contains()
public
contains(ValueOptionInterface $option) : bool
Parameters
- $option : ValueOptionInterface
Return values
boolgetDisplayValue()
public
getDisplayValue([string|null $locale = null ]) : string
Parameters
- $locale : string|null = null
Return values
stringgetIndex()
public
getIndex(int $index) : ValueOptionInterface|null
Parameters
- $index : int
Return values
ValueOptionInterface|nullgetValue()
public
getValue() : array<int, ValueOptionInterface>