FileCollectionIterator
in package
implements
Countable, Iterator
FinalYes
Tags
Table of Contents
Interfaces
- Countable
- Iterator
Properties
Methods
- __construct() : mixed
- count() : int
- current() : File
- key() : int
- next() : void
- rewind() : void
- valid() : bool
Properties
$files read-only
private
array<string|int, mixed>
$files
Tags
$position
private
int
$position
= 0
Methods
__construct()
public
__construct(FileCollection $files) : mixed
Parameters
- $files : FileCollection
count()
public
count() : int
Return values
intcurrent()
public
current() : File
Return values
Filekey()
public
key() : int
Return values
intnext()
public
next() : void
rewind()
public
rewind() : void
valid()
public
valid() : bool