Ejemplo n.º 1
0
 /**
  * Initializes object with empty value and parent node.
  *
  * @param Node $parent The parent node.
  */
 public function __construct(Node $parent)
 {
     parent::__construct($parent);
     $this->value = "";
 }
Ejemplo n.º 2
0
 /**
  * Initializes object with empty child node array and parent node.
  *
  * @param Node $parent The parent node.
  */
 public function __construct(Node $parent = null)
 {
     parent::__construct($parent);
     $this->nodes = array();
 }