PHP Trait Dotink\Parody\Iterator

Author: Matthew J. Sahagian [mjs] ([email protected])
Datei anzeigen Open project: dotink/parody

Public Methods

Method Description
current ( ) : mixed Get the current value
key ( ) : mixed Gets the current key
next ( ) : void Moves the current element of the value forward one
rewind ( ) : void Moved the current element of the value back to the beginning
valid ( ) : boolean Determine if the current key of the vlaue is Valid

Method Details

current() public method

Get the current value
public current ( ) : mixed
return mixed The current value of the set traversable value

key() public method

Gets the current key
public key ( ) : mixed
return mixed The current key of the set traversable value

next() public method

Moves the current element of the value forward one
public next ( ) : void
return void

rewind() public method

Moved the current element of the value back to the beginning
public rewind ( ) : void
return void

valid() public method

Determine if the current key of the vlaue is Valid
public valid ( ) : boolean
return boolean TRUE if the current key is valid, FALSE otherwise