ChoiceGroupView
in package
implements
IteratorAggregate
Represents a group of choices in templates.
Tags
Table of Contents
Interfaces
- IteratorAggregate
Properties
Methods
- __construct() : mixed
- Creates a new choice group view.
- getIterator() : Traversable<string|int, ChoiceGroupView|ChoiceView>
- {@inheritdoc}
Properties
$choices
public
mixed
$choices
$label
public
mixed
$label
Methods
__construct()
Creates a new choice group view.
public
__construct(string $label[, array<string|int, ChoiceGroupView|ChoiceView> $choices = [] ]) : mixed
Parameters
- $label : string
- $choices : array<string|int, ChoiceGroupView|ChoiceView> = []
-
the choice views in the group
getIterator()
{@inheritdoc}
public
getIterator() : Traversable<string|int, ChoiceGroupView|ChoiceView>