Commit | Line | Data |
---|---|---|
f6e43f2f | 1 | <?php |
a9229942 | 2 | |
f6e43f2f MS |
3 | namespace wcf\system\database\table\column; |
4 | ||
5 | /** | |
6 | * Every database table column that supports specifying a predetermined set of valid values must | |
7 | * implement this interface. | |
a9229942 TD |
8 | * |
9 | * @author Matthias Schmidt | |
10 | * @copyright 2001-2019 WoltLab GmbH | |
11 | * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php> | |
a9229942 | 12 | * @since 5.2 |
f6e43f2f | 13 | */ |
a9229942 TD |
14 | interface IEnumDatabaseTableColumn extends IDatabaseTableColumn |
15 | { | |
16 | /** | |
17 | * Sets the predetermined set of valid values for the database table column and returns this | |
18 | * column. | |
19 | * | |
3f13d793 | 20 | * @param string[] $values |
a9229942 TD |
21 | * @return $this |
22 | */ | |
a8c47fb1 | 23 | public function enumValues(array $values): static; |
a9229942 TD |
24 | |
25 | /** | |
26 | * Returns the predetermined set of valid values for the database table column. | |
27 | * | |
3f13d793 | 28 | * @return string[] |
a9229942 | 29 | */ |
3f13d793 | 30 | public function getEnumValues(): array; |
f6e43f2f | 31 | } |