SelectedOption
in package
Table of Contents
- $optionKey : string
- $optionValue : string
- create() : self
- Creates a new instance of Selected Option
- optionKey() : string
- Returns the Option Key
- optionValue() : string
- Returns the Option Value
- toArray() : array<string|int, mixed>
- Returns the content of this Value Object as an array
- __construct() : mixed
- Constructor
Properties
$optionKey
private
string
$optionKey
$optionValue
private
string
$optionValue
Methods
create()
Creates a new instance of Selected Option
public
static create(string $optionKey, string $optionValue) : self
Parameters
- $optionKey : string
- $optionValue : string
Return values
self —optionKey()
Returns the Option Key
public
optionKey() : string
Return values
string —optionValue()
Returns the Option Value
public
optionValue() : string
Return values
string —toArray()
Returns the content of this Value Object as an array
public
toArray() : array<string|int, mixed>
Return values
array<string|int, mixed> —__construct()
Constructor
private
__construct(string $optionKey, string $optionValue) : mixed
Parameters
- $optionKey : string
- $optionValue : string