Interface

TRex\Iterator\IKeyAccessor

interface IKeyAccessor

Interface IKeyAccessor.

Methods

array getKeys()

Returns all keys.

mixed|null getKey(int $index)

Returns the key associated to the specified offset.

mixed|null getFirstKey()

Gets the first key.

mixed|null getLastKey()

Get the last key.

Details

at line 18
public array getKeys()

Returns all keys.

Return Value

array

at line 29
public mixed|null getKey(int $index)

Returns the key associated to the specified offset.

This key may be the offset or an associative key. Resolves the negative offset.

Parameters

int $index

Return Value

mixed|null

at line 36
public mixed|null getFirstKey()

Gets the first key.

Return Value

mixed|null

at line 43
public mixed|null getLastKey()

Get the last key.

Return Value

mixed|null