Пример #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 = "";
 }
Пример #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();
 }