Fix `Ui/Message/Manager.getPermission()` for permissions with dashes
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / system / database / table / column / IEnumDatabaseTableColumn.class.php
CommitLineData
f6e43f2f
MS
1<?php
2namespace wcf\system\database\table\column;
3
4/**
5 * Every database table column that supports specifying a predetermined set of valid values must
6 * implement this interface.
7 *
8 * @author Matthias Schmidt
9 * @copyright 2001-2019 WoltLab GmbH
10 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
11 * @package WoltLabSuite\Core\System\Database\Table\Column
12 * @since 5.2
13 */
14interface IEnumDatabaseTableColumn extends IDatabaseTableColumn {
15 /**
16 * Sets the predetermined set of valid values for the database table column and returns this
17 * column.
18 *
19 * @param array $values
20 * @return $this
21 */
22 public function enumValues(array $values);
23
24 /**
25 * Returns the predetermined set of valid values for the database table column.
26 *
27 * @return array
28 */
29 public function getEnumValues();
30}