Apply PSR-12 code style (#3886)
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / system / menu / user / DefaultUserMenuItemProvider.class.php
1 <?php
2
3 namespace wcf\system\menu\user;
4
5 use wcf\data\DatabaseObjectDecorator;
6 use wcf\data\user\menu\item\UserMenuItem;
7
8 /**
9 * Default implementations of a user menu item provider.
10 *
11 * @author Tim Duesterhus
12 * @copyright 2001-2019 WoltLab GmbH
13 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
14 * @package WoltLabSuite\Core\System\Menu\User
15 *
16 * @method UserMenuItem getDecoratedObject()
17 * @mixin UserMenuItem
18 */
19 class DefaultUserMenuItemProvider extends DatabaseObjectDecorator implements IUserMenuItemProvider
20 {
21 /**
22 * @inheritDoc
23 */
24 protected static $baseClass = UserMenuItem::class;
25
26 /**
27 * @inheritDoc
28 */
29 public function isVisible()
30 {
31 return true;
32 }
33
34 /**
35 * @inheritDoc
36 */
37 public function getLink()
38 {
39 // explicit call to satisfy our interface
40 return $this->getDecoratedObject()->getLink();
41 }
42 }