Trait

TRex\Iterator\TIterator

trait TIterator

Implements IIterator.

Methods

IIterator getIterator()

Needs IIterator.

bool exist(mixed $key)

See IIterator.

mixed get(mixed $key)

See IIterator.

mixed key()

See IIterator.

mixed current()

See IIterator.

mixed next()

See IIterator.

mixed rewind()

See IIterator.

seek(mixed $index)

See IIterator.

bool valid()

See IIterator.

addAt(mixed $key, mixed $value)

See IIterator.

removeAt(mixed $key)

See IIterator.

int count()

See IIterator.

array toArray()

See IIterator.

Details

at line 18
abstract public IIterator getIterator()

Needs IIterator.

Return Value

IIterator

at line 26
public bool exist(mixed $key)

See IIterator.

Parameters

mixed $key

Return Value

bool

at line 37
public mixed get(mixed $key)

See IIterator.

Parameters

mixed $key

Return Value

mixed

at line 47
public mixed key()

See IIterator.

Return Value

mixed

at line 57
public mixed current()

See IIterator.

Return Value

mixed

at line 67
public mixed next()

See IIterator.

Return Value

mixed

at line 77
public mixed rewind()

See IIterator.

Return Value

mixed

at line 87
public seek(mixed $index)

See IIterator.

Parameters

mixed $index

at line 97
public bool valid()

See IIterator.

Return Value

bool

at line 108
public addAt(mixed $key, mixed $value)

See IIterator.

Parameters

mixed $key
mixed $value

at line 118
public removeAt(mixed $key)

See IIterator.

Parameters

mixed $key

at line 128
public int count()

See IIterator.

Return Value

int

at line 138
public array toArray()

See IIterator.

Return Value

array