. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Module; use Fisharebest\Webtrees\Menu; use Fisharebest\Webtrees\Tree; /** * Interface ModuleMenuInterface - Classes and libraries for module system */ interface ModuleMenuInterface { /** * Users change change the order of menus using the control panel. * * @param int $menu_order * * @return void */ public function setMenuOrder(int $menu_order): void; /** * Users change change the order of menus using the control panel. * * @return int */ public function getMenuOrder(): int; /** * The default position for this menu. It can be changed in the control panel. * * @return int */ function defaultMenuOrder(): int; /** * A menu, to be added to the main application menu. * * @param Tree $tree * * @return Menu|null */ public function getMenu(Tree $tree); }