Пример #1
0
 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();
 }
Пример #2
0
 public function addTo(Node &$node)
 {
     return $node->setAttribute($this);
 }