StringValueOption
in package
implements
ValueOptionInterface
uses
GetDisplayValue
FinalYes
Table of Contents
Interfaces
- ValueOptionInterface
- This models the smallest piece of data.
Properties
- $displayValues : array<string|int, mixed>
- $rawValue : string
Methods
- __construct() : mixed
- getDisplayValue() : string
- getDisplayValues() : array<string, string>
- getValue() : string|int|float|bool|DateTimeInterface|array<string|int, mixed>|null
Properties
$displayValues read-only
private
array<string|int, mixed>
$displayValues
$rawValue read-only
private
string
$rawValue
Methods
__construct()
public
__construct(string $rawValue, array<string, string> $displayValues) : mixed
Parameters
- $rawValue : string
- $displayValues : array<string, string>
getDisplayValue()
public
getDisplayValue([string|null $locale = null ]) : string
Parameters
- $locale : string|null = null
Return values
stringgetDisplayValues()
public
getDisplayValues() : array<string, string>
Return values
array<string, string>getValue()
public
getValue() : string|int|float|bool|DateTimeInterface|array<string|int, mixed>|null