/**
  * Add a child node. This method will set the child's parent to this object.
  * @param  SDNode $child      the child node to add
  */ 
 function addNode(SDNode $child) {
   $child->setParent($this);
   $this->children[] = $child;
 }