GeneratorCollection
implements
IteratorAggregate
-
template
-
-
implements
-
Table of Contents
Interfaces
- IteratorAggregate
Properties
-
$itemCollection
: iterable<string|int, mixed>
-
$items
: array<string|int, T>
Methods
-
__construct()
: mixed
-
each()
: Generator<string|int, U>
-
filter()
: GeneratorCollection<string|int, T>
-
getIterator()
: Generator<string|int, T>
-
map()
: GeneratorCollection<string|int, U>
-
filterItems()
: Generator<string|int, T>
$itemCollection
read-only
private
iterable<string|int, mixed>
$itemCollection
$items
private
array<string|int, T>
$items
__construct()
public
__construct(iterable<string|int, T> $itemCollection, T ...$items) : mixed
Parameters
-
$itemCollection
: iterable<string|int, T>
-
-
$items
: T
-
each()
public
each(callable(T): U $func) : Generator<string|int, U>
Parameters
-
$func
: callable(T): U
-
-
template
-
-
throws
-
Exception
Return values
Generator<string|int, U>
filter()
public
filter(callable $func) : GeneratorCollection<string|int, T>
Parameters
-
$func
: callable
-
-
throws
-
Exception
getIterator()
public
getIterator() : Generator<string|int, T>
Return values
Generator<string|int, T>
map()
public
map(callable(T): U $func) : GeneratorCollection<string|int, U>
Parameters
-
$func
: callable(T): U
-
-
template
-
-
throws
-
Exception
filterItems()
private
filterItems(callable $func) : Generator<string|int, T>
Parameters
-
$func
: callable
-
-
throws
-
Exception
Return values
Generator<string|int, T>