public function __clone() { parent::__clone(); }
/** * @param Parsed $parent */ public function setParent(Parsed $parent) { $parent->addChild($this); foreach ($this->siblings as $sibling) { //just to be sure if ($sibling != null) { $sibling->setParent($parent); } array_shift($this->siblings); } }