<?php

namespace App\Modules\Admin;

interface ControlPanelMenuInterface
{
    /**
     * Registers a new item with the menu.
     *
     * @param  string $name
     * @param  string $link
     * @param  string $icon
     * @param  string $section
     *
     * @return bool
     */
    public static function register($name, $link, $icon = null, $section = 'main');

    /**
     * Determines if the section has any items.
     *
     * @param  string  $section
     *
     * @return bool
     */
    public static function hasItems($section = 'main');

    /**
     * Renders the section.
     *
     * @param  string $section
     *
     * @return string
     */
    public static function render($section = 'main');
}
