Advances key.

@return $this
424148
protected function advanceKey()
    {
        if ($this->isScrollable() && ($this->documents[$this->key()] == end($this->documents))) {
            $this->page();
        } else {
            $this->key++;
        }

        return $this;
    }
399427
public function setKey($key) {
        if(!$this->setModified('key', $key)->isModified()) {
            return $this;
        }
		$this->key = $key;
		return $this;
    }
562103
protected function pushOnDuplicateKeyUpdate()
    {
        if( $this->onDuplicateKeyUpdate ) {
            $this->parts[] = 'ON DUPLICATE KEY UPDATE';
            $tmp = $this->values;
            $this->values = $this->onDuplicateKeyUpdate;
            $this->pushValues();
            $this->values = $tmp;
        }
    }
1315489
public function advance()
    {
        if (!$this->started) {
            throw new LogicException('Progress indicator has not yet been started.');
        }

        if (!$this->output->isDecorated()) {
            return;
        }

        $currentTime = $this->getCurrentTimeInMilliseconds();

        if ($currentTime < $this->indicatorUpdateTime) {
            return;
        }

        $this->indicatorUpdateTime = $currentTime + $this->indicatorChangeInterval;
        ++$this->indicatorCurrent;

        $this->display();
    }
1076637
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);
            }
        }
    }
1220490
public function forward_key( $key = true )
	{
		if ( $key === false )
		{
			$this->forward_key = false;
		}
		elseif ( $key === true )
		{
			$this->forward_key = \ClanCats::$config->get( 'database.default_primary_key', 'id' );
		}
		else
		{
			$this->forward_key = $key;
		}
		
		return $this;
	}
347567
public function setKey($key)
    {
        $arr = $this->parseKey($key);
        $this->key = $arr['key'];
        $this->identifier = $arr['identifier'];
        $this->prefix = $arr['prefix'];

        return $this;
    }
1137310
public function isKey()
    {
        $args = func_get_args();
        
        if (count($args) == 0) {
            return $this;
        }
        
        $last = array_pop($args);
        
        $pointer = &$this->data;
        foreach ($args as $i => $step) {
            if (!isset($pointer[$step])
                || !is_array($pointer[$step])
            ) {
                return false;
            }

            $pointer = &$pointer[$step];
        }
        
        if (!isset($pointer[$last])) {
            return false;
        }
        
        return true;
    }
490988
private function advanceToken()
    {
        if (!($this->tokenIs(T_WHITESPACE) || $this->tokenIs(T_DOC_COMMENT))) {
            $this->prevToken = $this->token;
        }
        $this->token = next($this->tokens);
    }
401305
private function setCurrentVersion()
    {
        if ($this->getCurrentVersion() !== null) {
            update_option($this->getVersionOptionKey(), $this->getVersion());
        } else {
            add_option($this->getVersionOptionKey(), $this->getVersion());
        }

        return $this;
    }
882933
public function hit()
    {
        if ($this->store instanceof RedisStore) {
            return $this->hitRedis();
        }

        if ($this->count()) {
            $this->store->increment($this->key);
            $this->number++;
        } else {
            $this->store->put($this->key, 1, $this->time);
            $this->number = 1;
        }

        return $this;
    }
629040
public function setMovitelPrivateKey($movitelPrivateKey = '')
    {
        $this->movitelPrivateKey = $movitelPrivateKey;
        $this->debug->debug(__FUNCTION__, 'movitelPrivateKey: ' . json_encode($this->movitelPrivateKey));

        return $this;
    }
1061434
public function getAugmentedSoFar()
    {
        if (!$this->offsetExists(self::KEY_AUGMENTED)) {
            $this[self::KEY_AUGMENTED] = [];
        }
        return $this[self::KEY_AUGMENTED];
    }
1007137
protected function keys()
    {
        if (count($this->before()) > count($this->after())) {
            return $this->before();
        }

        return $this->after();
    }
16528
public function next()
    {
        $this->current = $this->hydrator->hydrateRow();
        $this->key++;

        return $this->current;
    }
712084
public function next()
    {
        $value = $this->_skipNext ? current($this->_data) : next($this->_data);
        $this->_skipNext = false;
        return key($this->_data) !== null ? $value : null;
    }
1304030
public function key()
    {
        if (is_null($this->current)) {
            $this->current = current($this->branch);
        }
        if ($this->current instanceof RecursiveLeafInterface) {
            return $this->current->key();
        }
    }