ThemeNameCollection
in package
implements
IteratorAggregate
Class ThemeNameCollection
Interfaces, Classes and Traits
- IteratorAggregate
Table of Contents
- $names : array<string|int, ThemeNameInterface>
- __construct() : mixed
- ThemeNameCollection constructor.
- collect() : ThemeNameCollection
- Named constructor of ThemeNameCollection.
- getIterator() : ArrayIterator|Traversable
- Returns an array iterator of the internal collected theme name instances.
Properties
$names
protected
array<string|int, ThemeNameInterface>
$names
Methods
__construct()
ThemeNameCollection constructor.
public
__construct(ThemeName ...$names) : mixed
Parameters
- $names : ThemeName
-
Theme names.
Return values
mixed —collect()
Named constructor of ThemeNameCollection.
public
static collect(ThemeName ...$names) : ThemeNameCollection
Parameters
- $names : ThemeName
-
Theme names.
Return values
ThemeNameCollection —New instance.
getIterator()
Returns an array iterator of the internal collected theme name instances.
public
getIterator() : ArrayIterator|Traversable
This method is used php internally, so instances of this class can be used in foreach loops.