/** * Initializes object with empty value and parent node. * * @param Node $parent The parent node. */ public function __construct(Node $parent) { parent::__construct($parent); $this->value = ""; }
/** * 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(); }