1<?php 2 3namespace dokuwiki\TreeBuilder\Node; 4 5/** 6 * A node representing the top of the tree 7 * 8 * This node has no parents or siblings. It is used to represent the root of the tree. 9 */ 10class Top extends AbstractNode 11{ 12 public function __construct() 13 { 14 parent::__construct('', ''); 15 } 16 17 /** 18 * Always returns an empty array 19 * @inheritdoc 20 */ 21 public function getSiblings(): array 22 { 23 return []; 24 } 25 26 /** 27 * Always returns an empty array 28 * @inheritdoc 29 */ 30 public function getParents(): array 31 { 32 return []; 33 } 34 35 /** @inheritdoc */ 36 public function getHtmlLink(): string 37 { 38 return ''; 39 } 40} 41