Add return type `static` for `@return $this`
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / system / database / table / column / IEnumDatabaseTableColumn.class.php
CommitLineData
f6e43f2f 1<?php
a9229942 2
f6e43f2f
MS
3namespace 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>
12 * @package WoltLabSuite\Core\System\Database\Table\Column
13 * @since 5.2
f6e43f2f 14 */
a9229942
TD
15interface IEnumDatabaseTableColumn extends IDatabaseTableColumn
16{
17 /**
18 * Sets the predetermined set of valid values for the database table column and returns this
19 * column.
20 *
3f13d793 21 * @param string[] $values
a9229942
TD
22 * @return $this
23 */
a8c47fb1 24 public function enumValues(array $values): static;
a9229942
TD
25
26 /**
27 * Returns the predetermined set of valid values for the database table column.
28 *
3f13d793 29 * @return string[]
a9229942 30 */
3f13d793 31 public function getEnumValues(): array;
f6e43f2f 32}