PHP Trait Dotink\Parody\Iterator

Author: Matthew J. Sahagian [mjs] ([email protected])
Afficher le fichier Open project: dotink/parody

Méthodes publiques

Méthode 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 méthode

Get the current value
public current ( ) : mixed
Résultat mixed The current value of the set traversable value

key() public méthode

Gets the current key
public key ( ) : mixed
Résultat mixed The current key of the set traversable value

next() public méthode

Moves the current element of the value forward one
public next ( ) : void
Résultat void

rewind() public méthode

Moved the current element of the value back to the beginning
public rewind ( ) : void
Résultat void

valid() public méthode

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