Using array access, set the identifier part at the specified position

@param int|null $offset The position to set the identifer part at
@param string   $part   The value of the identifier part to set

@return void
169531
public function offsetSet($offset, $part)
    {
        if ($offset === null) {
            $this->append($part);
        }

        $this->replace($offset, $part);
    }
818090
public function offsetSet($offset, $value)
    {
        if (\is_string($offset) || \is_int($offset)) {
            $this->properties[$offset] = $value;
        }
    }
273987
public function offsetSet($offset, $value)
    {
        $this->loadData($offset);
        $this->set($offset, $value);
    }
765270
public function reset($part = null)
    {
        if ($part == null) {
            $this->_parts = self::$_partsInit;
        } else if (array_key_exists($part, self::$_partsInit)) {
            $this->_parts[$part] = self::$_partsInit[$part];
        }
        return $this;
    }
831808
public function offsetSet($offset, $value)
    {
        if (is_null($offset)) {
            $offset = $this->count();
        }
        $this->set($offset, $value);
    }
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;
        }
    }
1037886
public function setParts(array $parts)
    {
        if (isset($parts[0]) && $parts[0] instanceof DateTimeInterface) {
            $this->setDateTimes($parts);
        } else {
            parent::setParts($parts);
        }
    }
1057339
public function offsetSet($offset, $identifier)
    {
        if($identifier instanceof ObjectIdentifierInterface)
        {
            $data = array(
                'identifier' =>  $identifier,
                'class'      =>  $this->getClass($identifier)
            );

            apc_store($this->getNamespace().'-object_'.$offset, $data);
        }

        parent::offsetSet($offset, $identifier);
    }
1235026
public function offsetSet($offset, $value)
    {
        if ($offset === null) {
            $this->values[] = $value;

            return;
        }

        $keys = explode($this->keySeparator, $offset);

        $keyCount = count($keys);

        $array = &$this->values;

        while ($keyCount > 1) {
            $key = array_shift($keys);

            if (!isset($array[$key]) || !is_array($array[$key])) {
                $array[$key] = [];
            }

            $array = &$array[$key];

            --$keyCount;
        }

        $array[array_shift($keys)] = $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}";
            }
        }
    }
1202108
public function offsetSet($offset, $value)
    {
        if (is_null($offset)) {
            $this->items[] = $this->normalizeValue($value);
        } else {
            $this->items[$this->normalizeKey($offset)] = $this->normalizeValue($value);
        }
    }
457773
public function offsetSet($offset, $value) {
            if (is_null($offset)) {
                $this->custom[] = $value;
                $this->merge();
            } else {
                $this->set($offset, $value);
            }
        }
1271737
public function offsetUnset($offset)
    {
        unset($this->parts[$offset]);
        $this->parts = array_values($this->parts);
    }
54903
public function offsetSet($offset, $value)
    {
        if ($offset === null) {
            $this->add($value);
        } else {
            $this->errors[$offset] = $value;
        }
    }
860646
public function appendToLastLine(string $part): void
  {
    $this->lines[count($this->lines) - 1] .= $part;
  }
102575
public function setOffset($offset) {
    $this->offset = $offset;
    $this->page = ceil(intval($offset) / $this->pageSize) + 1;
  }
1097805
public function setPostcodeOutward($part)
    {
        $part = strtoupper(trim($part));

        if (preg_match('/^'.self::RxOutward.'$/', $part)) {
            $this->postcodeOutward = $part;
        } else {
            $this->postcodeOutward = null;
        }

        return $this;
    }