OptionList
class OptionList implements ItemListInterface
Traits
Methods
static ItemListInterface
Option|null
first()
No description
Option|null
getFirstEnabledOption()
Returns the first option of this list, that is enabled (not disabled).
Option[]
getIterator()
No description
Option|null
getOption($key)
No description
Option|null
last()
No description
Option|null
offsetGet(mixed $offset)
No description
int
array
toArray()
Transforms the option into an array.
int
Details
in
ItemListTrait at line 147
int
count()
No description
at line 34
static ItemListInterface
create(ItemInterface ...$options)
No description
at line 18
Option|null
first()
No description
at line 86
Option|null
getFirstEnabledOption()
Returns the first option of this list, that is enabled (not disabled).
Otherwise, returns null.
in
ItemListTrait at line 57
array
getItems()
No description
at line 18
Option[]
getIterator()
No description
at line 64
Option|null
getOption($key)
No description
in
ItemListTrait at line 154
array
jsonSerialize()
No description
at line 18
Option|null
last()
No description
in
ItemListTrait at line 116
bool
offsetExists($offset)
No description
at line 18
Option|null
offsetGet(mixed $offset)
No description
in
ItemListTrait at line 133
void
offsetSet($offset, $value)
No description
in
ItemListTrait at line 140
void
offsetUnset($offset)
No description
at line 43
int
push(ItemInterface $option)
No description
in
ItemListTrait at line 66
void
setItems(array $items)
No description
at line 72
array
toArray()
Transforms the option into an array.
at line 56
int
unshift(ItemInterface $option)
No description