vfsStreamContainerIterator
in package
implements
Iterator
Iterator for children of a directory container.
Interfaces, Classes and Traits
- Iterator
Table of Contents
- $children : mixed
- list of children from container to iterate over
- __construct() : mixed
- constructor
- current() : vfsStreamContent
- returns the current child
- key() : string
- returns the name of the current child
- next() : mixed
- iterates to next child
- rewind() : mixed
- resets children pointer
- valid() : bool
- checks if the current value is valid
Properties
$children
list of children from container to iterate over
protected
mixed
$children
Tags
Methods
__construct()
constructor
public
__construct(array<string|int, vfsStreamContent> $children) : mixed
Parameters
- $children : array<string|int, vfsStreamContent>
Return values
mixed —current()
returns the current child
public
current() : vfsStreamContent
Return values
vfsStreamContent —key()
returns the name of the current child
public
key() : string
Return values
string —next()
iterates to next child
public
next() : mixed
Return values
mixed —rewind()
resets children pointer
public
rewind() : mixed
Return values
mixed —valid()
checks if the current value is valid
public
valid() : bool