{@inheritdoc}
@see Knp\Menu.MenuItem::addChild()

Our menu items created by menu factory and $child always MenuItemInterface.
Factory sets current uri and other variable parts of menu item options
We don't need to set it here
483
public function addChild($child, array $options = array())
    {
        $child->setParent($this);

        $this->children[$child->getName()] = $child;

        return $child;
    }
901868
public function addChild(LeafRole $child)
    {
        $this->children->add($child);
        $child->setParent($this);

        return $this;
    }
1276120
public function setItem(Item $item)
    {
        $this->childOf = $item->id;
        $this->_item = $item;
        
        return $this;
    }
231730
public function addChild($name, $value = NULL, $namespace = NULL) {
		return parent::addChild($name, ($value !== NULL ? str_replace('&', '&amp;', $value) : NULL), $namespace);
	}
689590
public function addChild($value)
    {
        if (is_null($this->data))
            $this->data = array();
        $this->data[] = $value;
    }
594414
public function addChildren($child) : void
    {
        Assert::isInstanceOfAny($child, [EntityDescriptor::class, EntitiesDescriptor::class]);
        $this->children[] = $child;
    }
89278
public function addChild(\CsnCms\Entity\Article $child)
    {
        $child->setParent($this); // synchronously updating inverse side
        $this->children[] = $child;

        return $this;
    }
616086
function addItem(item = {}) {
    if (!item.id) {
        console.warn('Cannot add menuitem. A unique identifier is required for the menuitem to work correctly.');
        return;
    }
    let el = doc.createElement('menuItem');
    // assign unique id
    item.attributes = _.assign({}, item.attributes, {
        id: item.id
    });
    // add all attributes
    setAttributes(el, item.attributes);
    // add title
    el.innerHTML = `<title>${(_.isFunction(item.name) ? item.name() : item.name)}</title>`;
    // add page reference
    el.page = item.page;
    // appends to the menu
    menuBarEl.insertBefore(el, null);
    // cache for later use
    itemsCache[item.id] = el;

    return el;
}
1011482
public function addChild($child)
    {
        if ($child == null) return;
        $child->onAddChild($this);
        $this->child_list[$child->core_name] = $child;
    }
718604
public function addChild(Form_ElementModel $Child)
	{
		$cp = (array) $Child->parents; // child parents
		$fp = (array) $this->parents; // fieldset parents
		foreach($fp as $parent => $condition)
			$cp[$parent] = $condition;
		$Child->parents = $cp;
		$index = count($this->children);
		$this->children[] = $Child;
		if(isset($Child->id))
			$this->id2index[$Child->id] = $index;
		if(isset($Child->name))
			$this->name2index[$Child->name] = $index;
	}
916215
protected function takeChildFromDOM($child)
    {
        $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
        switch ($absoluteNodeName) {
        case $this->lookupNamespace('atom') . ':' . 'entry':
            $newEntry = new $this->_entryClassName($child);
            $newEntry->setHttpClient($this->getHttpClient());
            $newEntry->setMajorProtocolVersion($this->getMajorProtocolVersion());
            $newEntry->setMinorProtocolVersion($this->getMinorProtocolVersion());
            $this->_entry[] = $newEntry;
            break;
        default:
            parent::takeChildFromDOM($child);
            break;
        }
    }
1121481
public function addChild(Content $child)
    {
        $this->pages[$child->id] = $child;

        // Group by category
        if (!isset($this->categories[$child->category])) {
            $this->categories[$child->category] = [];
        }

        // Add post to category
        $this->categories[$child->category][] = $child;
    }
53876
public function addChild($key)
	{
		$object = new StdClassTargetBuilder();
		$this->data->$key = new \stdClass();
		$object->data = $this->data->$key;
		return $object;
	}
1096045
function updateChildrenUri()
    {
        foreach ($this->_children as $child_name => $child){
            /* @var Entity $child */
            $child->_attributes['uri'] = $this->_attributes['uri'].'/'.$child_name;
            $child->_attributes['parent'] = $this->_attributes['uri'];
            $child->updateChildrenUri();
        }
    }
1218833
protected function takeChildFromDOM($child)
    {
        $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
        switch ($absoluteNodeName) {
        case $this->lookupNamespace('yt') . ':' . 'status':
            $status = new Zend_Gdata_YouTube_Extension_Status();
            $status->transferFromDOM($child);
            $this->_status = $status;
            break;
        default:
            parent::takeChildFromDOM($child);
            break;
        }
    }
581288
function addChild( $group, $store = true )
    {
        $pathString = $this->PathString;
        if ( $pathString != '' )
            $pathString .= '/';
        $pathString .= $this->ID;
        $depth = $this->Depth + 1;
        $parentGroupID = $this->ID;
        $group->setAttribute( 'path_string', $pathString );
        $group->setAttribute( 'parent_group_id', $parentGroupID );
        $group->setAttribute( 'depth', $depth );
        if ( $store )
            $group->sync();
    }
454466
public function addChild(MenuEntry $child)
    {
        if (isset($this->children[$child->getKey()])) {
            return false;
        }
        
        $this->children[$child->getKey()] = $child;
        
        // Sets this MenuEntry as parent of the child
        $child->setParent($this);
        
        return true;
    }