Compute the next value of the Iterator.

@param null|int $offset
The offset
352756
public function next($offset = 1)
    {
        $offset = (null === $offset) ? 1 : $offset % $this->count();
        $this->rotation = \array_merge(
            \array_slice(
                $this->rotation,
                $offset
            ),
            \array_slice(
                $this->rotation,
                0,
                $offset
            )
        );
    }
1096463
public function offsetSet($offset, $value)
    {
        if (is_null($offset)) {
            $this->items[] = $value;
        } else {
            $this->items[$offset] = $value;
        }

        $this->keys = array_keys($this->items);
    }
752695
public function offsetGet($offset)
    {
        if ($this->offsetExists($offset)) {
            $values = get_object_vars($this);
            return $values[$offset];
        }

        return null;
    }
1296289
public function offsetSet($offset, $value)
    {
        if ($this->offsetExists($offset)) {
            $method = 'set'.static::formatOffset($offset);
            $this->{$method}($value);
        }
    }
692628
public function offsetSet($offset, $value) {
    if (NULL === $offset) {
      $this->container[] = [$value, NULL];
      return;
    }
    $this->container[$this->getHash($offset)] = [$value, $offset];
  }
788766
public function offsetSet($offset, $value)
    {
        $this->_offsetSet($offset, $value, $this->delimiter);
        $this->process->writeLog("_offsetSet", [$offset, $value, $this->delimiter]);
    }
273987
public function offsetSet($offset, $value)
    {
        $this->loadData($offset);
        $this->set($offset, $value);
    }
561442
public function offsetUnset($offset)
    {
        if ($this->offsetExists($offset)) {
            $value = $this->find($offset);
            unset($value);
        }
    }
306805
public function offsetSet($offset, $value)
	{
		if ($offset === null)
		{
			// $list[] = 'foo' maps to $list->append('foo')
			$this->append($value);
		}
		else
		{
			// Use the default implementation
			parent::offsetSet($offset, $value);
		}
	}
150671
public function offsetSet ($offset, $value) {
        if ($offset === NULL) {
            $this->data[] = $value;
        } else {
            $this->data[$offset] = $value;
        }
    }
125426
protected function loadData($offset)
    {
        if (!$this->loaded && !$this->isNew) {
            if (is_numeric($offset) || is_null($offset)) {
                $this->findAll();
            } else {
                $this->find();
            }
        }
    }
1364346
public function offsetSet($offset, $value)
    {
        $method = 'set' . ucfirst($offset);
        if (method_exists($this, $method)) {
            $this->{$method}($value);
        } else {
            $method = 'set' . self::matchPropertyName($offset);
            if (method_exists($this, $method)) {
                $this->{$method}($value);
            } else {
                $this->unknownProperties[$offset] = $value;
            }
        }
    }
845438
private void nextValue() {
		while (iterator.hasNext()) {
			nextValue = iterator.next();
			if (nextValue.isExpired() == false) {
				return;
			}
		}
		nextValue = null;
	}
298270
public function offsetSet($offset, $value): void
    {
        $name = is_string($offset) && !is_numeric($offset) ? $offset : null;
        $this->register($value, $name);
    }
1181359
public function offsetSet($offset, $value)
    {
        //argument 1 must be scalar, null or bool
        Argument::i()->test(1, 'scalar', 'null', 'bool');
        
        $this->translate($offset, $value);
    }
755971
public function offsetSet($offset, $value)
    {
        if (is_null($offset)) {
            $this->data[] = $value;
        } else {
            $this->data[$offset] = $value;
        }

        $this->keys = array_keys($this->data);
    }
672287
public function peek($offset) {
    if ($this->position + $offset >= $this->length) {
      return NULL;
    }
    return $this->tokens[$this->position + $offset];
  }