protected function _getCurrentIterableKey(&$iterable)
    {
        $current = $this->_getCurrentIterableValue($iterable);

        return ($current instanceof KeyAwareInterface)
            ? $current->getKey()
            : key($iterable);
    }
protected function _getCurrentIterableKey(&$iterable)
    {
        $current = $this->_getCurrentIterableValue($iterable);

        return ($current instanceof KeyAwareInterface)
            ? $current->getKey()
            : key($iterable);
    }
protected function _getCurrentIterableKey ( & $ iterable ) { $ current = $ this -> _getCurrentIterableValue ( $ iterable ) ; return ( $ current instanceof KeyAwareInterface ) ? $ current -> getKey ( ) : key ( $ iterable ) ; }
Retrieves the key for the current element of an iterable.

@since [*next-version*]

@param array|Traversable $iterable The iterable.

@return string|int|null The current key.
Retrieves the key for the current element of an iterable .