WidgetOptions
in package
implements
IteratorAggregate
Class representing a collection of options for a widget.
Interfaces, Classes and Traits
- IteratorAggregate
Table of Contents
- $values : array<string|int, WidgetOption>
- Values.
- create() : WidgetOptions
- Create instance.
- getById() : WidgetOption
- Return option by ID.
- getIterator() : ArrayIterator
- validateUpdateSet() : void
- Validate option update set.
- __construct() : mixed
- Constructor.
Properties
$values
Values.
private
array<string|int, WidgetOption>
$values
Methods
create()
Create instance.
public
static create(WidgetOption ...$options) : WidgetOptions
Parameters
- $options : WidgetOption
-
Values.
Return values
WidgetOptions —Instance.
getById()
Return option by ID.
public
getById(string $id) : WidgetOption
Parameters
- $id : string
-
Option ID.
Return values
WidgetOption —Option with provided ID.
getIterator()
public
getIterator() : ArrayIterator
Tags
Return values
ArrayIterator —validateUpdateSet()
Validate option update set.
public
validateUpdateSet(array<string|int, mixed> $updateSet) : void
Parameters
- $updateSet : array<string|int, mixed>
-
Widget's option update set.
Return values
void —__construct()
Constructor.
private
__construct(array<string|int, mixed> $values) : mixed
Parameters
- $values : array<string|int, mixed>
-
Values.