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