Set the segment at a given offset.

@param  mixed  $offset
@param  mixed  $segment
@return void
420261
public function offsetSet($offset, $segment)
	{
		if (is_null($offset)) {
			$this->segments[] = (string) $segment;
		} else {
			$this->segments[$offset] = (string) $segment;
		}
	}
906555
public function offset( $offset ) {
		$this->offset = $offset;
		if ( false === starts_with( $offset . '', ':' ) ) {
			$this->offset = (int) $offset;
		}
	}
434792
public function offsetUnset($offset): void
    {
        $args = [$offset];
        $methodName = __FUNCTION__;

        $this->findAndCall($methodName, $args);
    }
290131
public function offsetSet($offset, $value)
    {
        $field = $this->dataField;

        if ($offset !== null) {
            $this->{$field}[$offset] = $value;
        } else {
            array_push($this->{$field}, $value);
        }
    }
633732
public function offsetUnset($offset)
    {
        !is_int($offset) and trigger_error(
            __CLASS__ . '::' . __FUNCTION__ . '() : Only accepts integer offsets',
            E_USER_WARNING
        );
        if (is_int($offset) and isset($this->_elements[$offset])) {
            unset($this->_elements[$offset]);
            $this->_count = count($this->_elements);
        }
    }
166850
public function offsetSet( $offset, $value )
	{
		if (!$value instanceof ResponseCookie)
		{
			$value = new ResponseCookie($offset, $value);
		}
		parent::offsetSet($offset, $value);
	}
367790
public function offsetSet($offset, $value)
    {
        $this->fillOnce();
        $this->_attributes[$offset] = $value;
        $this->attributesChanged();
    }
657513
public function offsetSet($offset, $value): void
    {
        self::validateOffset($offset);
        $this->data[$offset] = $value;
    }
457083
public function offsetSet($offset, $value)
	{
		try
		{
			$this->__set($offset, $value);
		}
		catch (\Exception $e)
		{
			return false;
		}
	}
874928
public function setOffset($offset)
    {
        $this->offset = $offset === null ? null : (int) $offset;
        return $this;
    }
86155
public function offsetSet($offset, $value)
    {
        $this->_modified = true;
        if (null === $offset)
            $this->_storage[] = $value;
        else
            $this->_storage[$offset] = $value;
    }
265987
public function offsetSet($offset, $value)
    {
        $this->assertElementIsOfType($value);
        $this->collection[$offset] = $value;
    }
298270
public function offsetSet($offset, $value): void
    {
        $name = is_string($offset) && !is_numeric($offset) ? $offset : null;
        $this->register($value, $name);
    }
54903
public function offsetSet($offset, $value)
    {
        if ($offset === null) {
            $this->add($value);
        } else {
            $this->errors[$offset] = $value;
        }
    }
391581
public function offsetSet($offset, $value)
    {
        if ($offset === null) {
            $offset = count($this->session[$this->prefix]);
        }

        $this->session[$this->prefix][$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);
	}
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;
            }
        }
    }