5 * Every object with permissions has to implement this interface.
7 * @author Matthias Schmidt
8 * @copyright 2001-2014 WoltLab GmbH
9 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
10 * @package com.woltlab.wcf
12 * @category Community Framework
14 interface IPermissionObject
{
16 * Checks if the active user has the given permissions for this object and
17 * throws a PermissionDeniedException if they don't have one of the permissions.
19 * @param array<string> $permissions
21 public function checkPermissions(array $permissions);
24 * Returns the permission value of the given permission for this object
25 * and the active user.
27 * @param string $permission
30 public function getPermission($permission);