设置一个偏移位置的值.
@param string $offset 待设置的偏移位置.
@param mixed $value 需要设置的值.
@return void
971874
public function offsetSet($offset, $value)
    {
        isset($this->frozen[$offset])
            && Exception::overrideService($offset);
        $this->items[$offset] = $value;
        $this->keys[$offset] = true;
    }
799583
public function offsetSet($offset, $value)
    {
        $value = trim($value);

        if ( ! empty($value)) {
            parent::offsetSet($offset, $value);
        }
    }
457773
public function offsetSet($offset, $value) {
            if (is_null($offset)) {
                $this->custom[] = $value;
                $this->merge();
            } else {
                $this->set($offset, $value);
            }
        }
1224575
public function offsetSet($offset, $value) {
		if(is_null($offset))
			$this->fields[] = $this->parseFields($value, count($this->fields));
		else
			$this->fields[$offset] = $this->parseFields($value, $offset);
	}
1013975
public function offsetSet ($offset, $value) {
		$data = & $_SESSION[$this->__name];
        if ($offset === NULL) {
            $data[] = $value;
        } else {
            $data[$offset] = $value;
        }
    }
336553
public function offsetSet($offset, $value)
    {
        $iterator = $this->getIterator();
        $iterator->offsetSet($offset, $value);

        // @codeCoverageIgnoreStart
    //
    // This method always throws an exception, so we ignore the closing
    // brace
    }
1202108
public function offsetSet($offset, $value)
    {
        if (is_null($offset)) {
            $this->items[] = $this->normalizeValue($value);
        } else {
            $this->items[$this->normalizeKey($offset)] = $this->normalizeValue($value);
        }
    }
131493
public function offsetSet($offset, $value)
    {
        $this->str = $this->getPrefix($offset) . $value . $this->getSuffix($offset);
    }
477798
public function offsetSet($offset, $value)
    {
        if(!isset($this->_data[$offset])) {
            $this->_data[$offset] = array();
        }

        $this->_data[$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);
    }
401584
public function offsetSet($offset, $value): void
    {
        $offset = $this->sanitizeOffset($offset);

        $this->data[$offset] = $value;
    }
178902
public function offsetSet($offset, $value)
    {
        if (false === method_exists($this, 'set' . ucfirst($offset))) {
            $this->$offset = $value;

            return $this;
        }

        return $this->{'set' . ucfirst($offset)}($value);
    }
413989
public static  function set($offset, $value = '')
    {
        if (is_array($offset)) {
            foreach ($offset as $key => $segment) {
                self::$config[$key] = $segment;
            }
        } else {
            self::$config[$offset] = $value;
        }
    }
1090933
public function offsetSet($offset, $value)
	{
		// just to make sure the listKey exists
		$this->getListByKey();
		if (is_null($offset))
		{
			$this->info[$this->listKey][] = $value;
		}
		else
		{
			$this->info[$this->listKey][$offset] = $value;
		}
	}
753443
public function offsetSet($offset, $value): void
    {
        $index = $this->getSize();

        // change size.
        if ($index <= \count($this->keys)) {
            $this->values->setSize($index + 10);
        }

        $this->values[$index] = $value;
        $this->keys[$offset] = $index;
    }
818090
public function offsetSet($offset, $value)
    {
        if (\is_string($offset) || \is_int($offset)) {
            $this->properties[$offset] = $value;
        }
    }
1207027
public function offsetSet($offset, $value)
    {
        if (is_array($this->object)) {
            $this->object[$offset] = $value;

            return;
        }

        $this->object->$offset = $value;
    }