Apply PSR-12 code style (#3886)
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / system / menu / user / IUserMenuItemProvider.class.php
1 <?php
2
3 namespace wcf\system\menu\user;
4
5 use wcf\data\IDatabaseObjectProcessor;
6
7 /**
8 * Any user menu item provider should implement this interface.
9 *
10 * @author Tim Duesterhus
11 * @copyright 2001-2019 WoltLab GmbH
12 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
13 * @package WoltLabSuite\Core\System\Menu\User
14 */
15 interface IUserMenuItemProvider extends IDatabaseObjectProcessor
16 {
17 /**
18 * Returns true if the associated menu item should be visible for the active user.
19 *
20 * @return bool
21 */
22 public function isVisible();
23
24 /**
25 * Returns the href of the associated menu item.
26 *
27 * @return string
28 */
29 public function getLink();
30 }