rootNode = $root; } /** * @return AFPTreeNode|null */ public function getRoot(): ?AFPTreeNode { return $this->rootNode; } }