src/Smf/Menu/Control/MenuControl.php
public function getRoot()
    {
        if ($this->root === null) {
            $this->root = $this->menuFactory->createItem($this->getName());
        }
        return $this->root;
    }
public function getRoot()
    {
        if ($this->root === null) {
            $this->root = $this->menuFactory->createItem($this->getName());
        }
        return $this->root;
    }
public function getRoot ( ) { if ( $ this -> root === null ) { $ this -> root = $ this -> menuFactory -> createItem ( $ this -> getName ( ) ) ; } return $ this -> root ; }
Returns root item

@return \Knp\Menu\ItemInterface
Returns root item