/** * @param Node $node Child node object * @return PHPPdf\Core\Node\Container */ public function add(Node $node) { $node->setParent($this); $node->reset(); $this->children[] = $node; $node->setPriorityFromParent(); return $this; }