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