/* offsetSet ( mixed $index, mixed $val )

Sets an array value
426034
public function offsetSet($index, $val)
    {
        $val = (string) $val;
        $this->value = \mb_substr($this->value, 0, $index) . $val . \mb_substr($this->value, $index);
        $this->length += \mb_strlen($val);
    }
1207027
public function offsetSet($offset, $value)
    {
        if (is_array($this->object)) {
            $this->object[$offset] = $value;

            return;
        }

        $this->object->$offset = $value;
    }
929398
function offsetset($key,$val) {
		return Base::instance()->visible($this,$key)?
			($this->$key=$val):$this->set($key,$val);
	}
1309254
public function offsetSet($key, $value){
        if ( is_array($value) )
          parent::offsetSet($key, new static($value));
        else
          parent::offsetSet($key, $value);
    }
376324
public function offsetSet( $offset, $value )
	{
		$offset = self::normalizeKey($offset);
		if( $offset !== false )
		{
			$this->items[$offset] = $value;
		}
	}
565473
public static void set(final int[][] array, final long index, int value)
    {
        array[segment(index)][displacement(index)] = value;
    }
803500
public function offsetSet($offset, $value)
    {
        if (is_null($offset)) {
            $this->lines[] = $value;
        } else {
            $index = $this->findLine($offset);

            if ($index >= 0) {
                $this->lines[$index] = "{$offset}={$value}";
            } else {
                $this->lines[] = "{$offset}={$value}";
            }
        }
    }
273987
public function offsetSet($offset, $value)
    {
        $this->loadData($offset);
        $this->set($offset, $value);
    }
234037
public void set(long index, T value)
    {
        array[segment(index)][offset(index)] = value;
    }
722925
function offsetSet($name, $value)
    {
        $v = $this->getValue();
        if (!is_array($v)) $v = [];
        if (is_null($name)){
            $v[] = $value;
        }else{
            $v[$name] = $value;
            if (isset($this->_interfaces[$name])) unset($this->_interfaces[$name]);
        }
        $this->set($v);
    }
692628
public function offsetSet($offset, $value) {
    if (NULL === $offset) {
      $this->container[] = [$value, NULL];
      return;
    }
    $this->container[$this->getHash($offset)] = [$value, $offset];
  }
639815
public function offsetSet($offset, $value)
    {
        dd($value);
        if(is_null($offset)) {
            $this->{$this->index} = $value;
            $this->index++;
        } else {
            $this->$offset = $value;
        }
    }
669388
@SuppressWarnings("unchecked")
    public static void setIndex(Object array, int index, Object val)
            throws ReflectError, UtilTargetError {
        try {
            val = Primitive.unwrap(val);
            if ( array instanceof List )
                ((List<Object>) array).set(index, val);
            else
                Array.set(array, index, val);
        }
        catch( IllegalArgumentException e1 ) {
            // fabricated array store exception
            throw new UtilTargetError(
                new ArrayStoreException( e1.getMessage() ) );
        } catch( IndexOutOfBoundsException e1 ) {
            int len = array instanceof List
                    ? ((List<?>) array).size()
                    : Array.getLength(array);
            throw new UtilTargetError("Index " + index
                    + " out-of-bounds for length " + len, e1);
        }
    }
373485
public function offsetSet($offset, $value) : void
    {
        if ($offset !== null) {
            $method = 'set' . str_replace(' ', '', ucwords(str_replace('_', ' ', $offset)));
            if (method_exists($this, $method)) {
                $this->$method($value);
                return;
            }
            $this->data[$offset] = $value;
        }
    }
150593
@NonNull
    @Override
    public MutableArray setArray(int index, Array value) {
        return setValue(index, value);
    }
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;
            }
        }
    }
143235
public function offsetSet($offset, $value)
	{
		list($index_name, $key) = $this->normalizeAccessKey($offset);

		$this->set($key, $value, $index_name);
	}