/** * Add a child to this element * * @param BaseElement $child */ function add_child($child) { $this->children[$child->identifier()] = $child; }