PHP Class org\bovigo\vfs\vfsStreamContainerIterator

Inheritance: implements Iterator
ファイルを表示 Open project: mikey179/vfsstream

Protected Properties

Property Type Description
$children list of children from container to iterate over

Public Methods

Method Description
__construct ( array $children ) constructor
current ( ) : org\bovigo\vfs\vfsStreamContent returns the current child
key ( ) : string returns the name of the current child
next ( ) iterates to next child
rewind ( ) resets children pointer
valid ( ) : boolean checks if the current value is valid

Method Details

__construct() public method

constructor
public __construct ( array $children )
$children array

current() public method

returns the current child
public current ( ) : org\bovigo\vfs\vfsStreamContent
return org\bovigo\vfs\vfsStreamContent

key() public method

returns the name of the current child
public key ( ) : string
return string

next() public method

iterates to next child
public next ( )

rewind() public method

resets children pointer
public rewind ( )

valid() public method

checks if the current value is valid
public valid ( ) : boolean
return boolean

Property Details

$children protected_oe property

list of children from container to iterate over
protected $children