Offset to set

@link  http://php.net/manual/en/arrayaccess.offsetset.php

@param mixed $offset <p>
The offset to assign the value to.
</p>
@param mixed $value  <p>
The value to set.
</p>

@return void
@since 5.0.0
503820
public function offsetSet($offset, $value) {
		$thing = $this->get($offset);
		if (!$thing->isFile() && $thing->isDirectory()) {
			throw  new LogicException("Cannot write to directory.");
		}
		/**
		 * @var File $thing
		 */

		if ($thing->isFile()) {
			$thing->write($value);
		} else {
			$this->createFile($offset, $value);
		}
	}
365252
public function offsetSet($offset, $value)
    {
        if (property_exists(get_class($this), $offset)) {
            $property = new ReflectionProperty(get_class($this), $offset);
            if ($property->isPublic()) {
                $this->$offset = $value;
            }

            return;
        }

        $this->$offset = $value;
    }
772045
public function offsetSet($offset, $value)
    {
        if ($offset === null) {
            $offset = uniqid('uid');
        }
        if (is_string($value)) {
            $this->redis->hSet($this->key, $offset, "!".$value);
        } else {
            $this->redis->hSet($this->key, $offset, serialize($value));
        }
    }
70705
public function offsetSet($offset, $value)
    {
        if (is_null($offset)) {
            $this->container[] = $value;
        } else {
            $this->container[$offset] = $value;
            if (is_numeric($offset)) {
                $this->length = (int)$offset;
            }
        }
    }
831808
public function offsetSet($offset, $value)
    {
        if (is_null($offset)) {
            $offset = $this->count();
        }
        $this->set($offset, $value);
    }
401584
public function offsetSet($offset, $value): void
    {
        $offset = $this->sanitizeOffset($offset);

        $this->data[$offset] = $value;
    }
971874
public function offsetSet($offset, $value)
    {
        isset($this->frozen[$offset])
            && Exception::overrideService($offset);
        $this->items[$offset] = $value;
        $this->keys[$offset] = true;
    }
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;
		}
	}
243674
public function offsetSet($offset, $value)
    {
        if ($offset == self::QUERY) {
            $parameters = [];
            parse_str($value, $parameters);
            $value = $parameters;
        }
        $this->set($offset, $value);
    }
1202108
public function offsetSet($offset, $value)
    {
        if (is_null($offset)) {
            $this->items[] = $this->normalizeValue($value);
        } else {
            $this->items[$this->normalizeKey($offset)] = $this->normalizeValue($value);
        }
    }
265987
public function offsetSet($offset, $value)
    {
        $this->assertElementIsOfType($value);
        $this->collection[$offset] = $value;
    }
692628
public function offsetSet($offset, $value) {
    if (NULL === $offset) {
      $this->container[] = [$value, NULL];
      return;
    }
    $this->container[$this->getHash($offset)] = [$value, $offset];
  }
399271
public function offsetSet($offset, $value)
    {
        if (is_null($offset)) {
            $offset = $this->_integerToStringKey($this->_integerKeysCounter++);
        }

        $this->_putData($offset, $value);
        return $this;
    }
574591
public function offsetSet($offset, $value) {
		$this->getElements();
        $this->elements[$this->getPosition($offset)] = $value;
    }
1129438
public function offsetSet($offset, $value)
    {
        apc_store($this->getNamespace().'-class_'.$offset, $value);

        parent::offsetSet($offset, $value);
    }
1238040
public function offsetSet($offset, $value) {
		if ($offset instanceOf Argument) {
			$offset = $offset->key;
		}

		$this->_parsed[$offset] = $value;
	}
1068737
public function offsetSet($offset, $value)
    {
        if (true === is_null($offset)) {
            $this->className = $value;
        } else {
            $this->{$offset} = $value;
        }
    }