public function append(Node &$node) { $this->nodes[] = $node; $last = array_slice($this->nodes, 1, -1, true); $keys = array_keys($last); $node->setIndex($keys[0]); $this->rewind(); }
public function addTo(Node &$node) { return $node->setAttribute($this); }