The InternalIterator class
(PHP 8)
简介
Class to ease implementing
IteratorAggregate
for
internal
classes.
类摘要
final
class
InternalIterator
implements
Iterator
{
/* 方法 */
private
__construct
()
public
current
():
mixed
public
key
():
mixed
public
next
():
void
public
rewind
():
void
public
valid
():
bool
}
目录
InternalIterator::__construct
— Private constructor to disallow direct instantiation
InternalIterator::current
— Return the current element
InternalIterator::key
— Return the key of the current element
InternalIterator::next
— Move forward to next element
InternalIterator::rewind
— Rewind the Iterator to the first element
InternalIterator::valid
— Check if current position is valid