Returns current Key.
@access		public
@return		mixed|NULL
10283
public function key()
	{
		$keys	= array_keys( $this->pairs );
		return $this->position < $this->count() ? $keys[$this->position] : NULL;
	}
557610
public function getCurrent()
    {
        if (false === $this->pointer || empty($this->ids)) {
            return null;
        }
        return $this->ids[$this->pointer];
    }
88873
public function current()
    {
        if ($this->current instanceof TerminalBucket) {
            return null;
        }

        /** @var KeyValueBucket $current */
        $current = $this->current;

        return $current->value();
    }
639857
public function current()
    {
        $row = null;

        if ($this->valid()) {
            $row = $this->getRowData($this->index);
        }

        return $row;
    }
212927
public function key()
    {
        if (!$this->valid()) {
            return null;
        }

        if ($this->mode & self::KEY_AS_KEY) {
            return parent::key();
        }

        return $this->cursor;
    }
251175
private function getCurrentItem()
    {
        // Hack for weird initialization logic
        if (!$this->currentItem) {
            $key = $this->getCurrentKey();
            $this->currentItem = $this->getItemStorage()->get($key);
        }

        return $this->currentItem;
    }
1334928
public function getKey() : ?string 
    {
        if ( ! $this->hasKey()) {
            $this->setKey($this->getDefaultKey());
        }
        return $this->key;
    }
211914
public function current() {
		if(!($r = $this->tmp_dal->current()))
			return null;
		else {
			$entity = $this->definition->make([], $this->locale);
			return $this->hydrate($entity, $r);
		}
	}
319611
public function getCurrentKey()
    {
        if (!$this->currentKey) {
            $this->currentKey = $this->getStrategy()->strategy();
        }

        return $this->currentKey;
    }
1161299
public function key()
    {
        if ($this->type == self::PAIRS) {
            return $this->current->key;
        } else {
            return $this->index;
        }
    }
443930
protected function get_key_from_position() {
        $keylist = array_keys($this->userlists);
        if (isset($keylist[$this->iteratorposition])) {
            return $keylist[$this->iteratorposition];
        }

        return null;
    }
673775
public function getKey($key)
	{
		return isset($this->data[$key]) ? $this->data[$key] : null;
	}
1127819
public function key()
    {
        if (!$this->valid()) {
            return null;
        }

        if (null === $this->keyMapper) {
            return parent::key();
        }

        $map = $this->keyMapper;
        return $map(parent::key(), parent::current());
    }
1219114
public function key()
    {
        // TODO: Track position internally to avoid repeated info() calls
        if ( ! $this->useIdentifierKeys) {
            $info = $this->mongoCursor->info();

            return isset($info['at']) ? $info['at'] : null;
        }

        return $this->mongoCursor->key();
    }
1308641
public function current()
    {
        $map = $this->__getSerialisablePropertyMap();
        $mapKeys = array_keys($map);
        return $map[$mapKeys[$this->iteratorPosition]];
    }
1095144
public function getPrimaryKeyValue()
    {
        $primaryKey = $this->getPrimaryKey();
        if (isset($this->$primaryKey)) {
            return $this->$primaryKey;
        } else {
            return null;
        }
    }
812588
public function key()
    {
        if (is_null($this->current)) {
            return $this->getUniqueKey();
        }
        if ($this->current instanceof RecursiveLeafInterface) {
            return $this->current->key();
        }
    }