Adds a child block to this block
@param int $index The offset of the child block
3141
public function addChild($index) {
		foreach($this->children as $child) {
			if($child->getID() == $index) return;
		}
		$this->children[] = $this->reflector->getBlockByID($index);
	}
1098379
public function offsetSet($index, $value)
    {
        if (is_array($value)) {
            $this->{$index} = new self($value);
        } else {
            $this->{$index} = $value;
        }
    }
79726
public function addToIndex(int $index, $item): bool {
        if (\count($this->array) === $this->size()) {
            $this->ensureCapacity($this->size() * 2 + 1);
        }
        $this->array[$index] = $item;
        $this->size++;
        return true;
    }
769349
public function offsetSet($index, $value) {
		if( is_null($index) ){
			$this->results[] = $value;
			return;
		}
		$this->results[$index] = $value;
	}
274476
public function addIndex(Index $index)
    {
        if ($this->hasIndex($index->getName())) {
            throw SchemaException::tableIndexAlreadyExists($this->getName(), $index->getName());
        }

        foreach ($index->getColumnNames() as $columnName) {
            if (!$this->hasColumn($columnName)) {
                throw SchemaException::tableColumnDoesNotExist($this->getName(), $columnName);
            }
        }

        foreach ($this->getIndexes() as $indexCandidate) {
            if ($indexCandidate->isBetterThan($index)) {
                return;
            }
        }

        foreach ($this->getIndexes() as $indexCandidate) {
            if ($index->isBetterThan($indexCandidate)) {
                $this->dropIndex($indexCandidate->getName());
            }
        }

        $this->indexes[$index->getName()] = $index;
    }
54165
public function addIndex($type, $index)
    {
        if (!isset($this->indexes[$type])) {
            $this->indexes[$type] = [];
        }

        $this->indexes[$type][] = $index;
    }
1320976
public function remove($index)
    {
        $this->lines = \array_diff_key($this->lines, array($index => ''));

        $this->write();
    }
294995
public function removeChildAt($index)
    {

        if (!$this->hasChildAt($index))
            throw new TreeException(
                "Failed to remove child: No child found at $index"
            );

        return $this->removeChild($this->getChildAt($index));
    }
397333
public function offsetSet($index, $item) : void
    {
        if ($item instanceof Fieldset) {
            foreach ($item as $subitem) {
                $this->setValue($subitem);
            }
        } else {
            $this->setValue($item);
        }
        parent::offsetSet($index, $item);
    }
1011482
public function addChild($child)
    {
        if ($child == null) return;
        $child->onAddChild($this);
        $this->child_list[$child->core_name] = $child;
    }
439127
public function addChild($child)
    {
        $children = $this->getChildren();
        array_push($children, $child);
        $this->setChildren($children);
    }
929245
public function shiftUp(int $index) : void
    {
        if ($index + 1 === $this->count()) {
            return;
        }

        $this->swap($index, $index + 1);
    }
114132
protected void addChild(Node child, int index, double split) {
        children.add(index, child);
        nodeSplits.put(child, split);
        child.setParent(this);
    }
256113
public function offsetUnset($index)
    {
        $this->value = \mb_substr($this->value, 0, $index) . \mb_substr($this->value, $index + 1);
        --$this->length;
    }
1125452
@Override
    public void add(int index, Object element) {
        rewrite |= index < delegate.size();

        delegate.add(index, element);
    }
652001
public function getAbstractNode( $index )
	{
		if ( ! isset( $this->_childs[ $index ] ) )
			throw new IndexOutOfRangeException();
		return $this->_childs[ $index ];
	}
95098
public function addSecondaryIndex(Index $index)
    {
        if ($this->isEmbeddedDocument) {
            throw MappingException::embeddedDocumentsNotIndexable($this->getName());
        }

        if (isset($this->secondaryIndexes[$index->getName()])) {
            throw MappingException::indexExists($this->getName(), $index->getName());
        }

        $this->secondaryIndexes[$index->getName()] = $index;
    }