src/ORM/Map_Iterator.php
public function key()
    {
        if (($this->endItemIdx !== null) && isset($this->lastItems[$this->endItemIdx])) {
            return $this->lastItems[$this->endItemIdx][0];
        } else {
            if (isset($this->firstItems[$this->firstItemIdx])) {
                return $this->firstItems[$this->firstItemIdx][0];
            } else {
                return $this->extractValue($this->items->current(), $this->keyField);
            }
        }
    }
public function key()
    {
        if (($this->endItemIdx !== null) && isset($this->lastItems[$this->endItemIdx])) {
            return $this->lastItems[$this->endItemIdx][0];
        } else {
            if (isset($this->firstItems[$this->firstItemIdx])) {
                return $this->firstItems[$this->firstItemIdx][0];
            } else {
                return $this->extractValue($this->items->current(), $this->keyField);
            }
        }
    }
public function key ( ) { if ( ( $ this -> endItemIdx !== null ) && isset ( $ this -> lastItems [ $ this -> endItemIdx ] ) ) { return $ this -> lastItems [ $ this -> endItemIdx ] [ 0 ] ; } else { if ( isset ( $ this -> firstItems [ $ this -> firstItemIdx ] ) ) { return $ this -> firstItems [ $ this -> firstItemIdx ] [ 0 ] ; } else { return $ this -> extractValue ( $ this -> items -> current ( ) , $ this -> keyField ) ; } } }
Return the key of the current element.

@return string
Return the key of the current element .