Add PHP API to update database tables
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / system / database / table / column / IAutoIncrementDatabaseTableColumn.class.php
CommitLineData
f6e43f2f
MS
1<?php
2namespace wcf\system\database\table\column;
3
4/**
5 * Every database table column whose values can be auto-incremented must implement this interface.
6 *
7 * @author Matthias Schmidt
8 * @copyright 2001-2019 WoltLab GmbH
9 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
10 * @package WoltLabSuite\Core\System\Database\Table\Column
11 * @since 5.2
12 */
13interface IAutoIncrementDatabaseTableColumn {
14 /**
15 * Sets if the values of the database table column are auto-increment and returns this column.
16 *
17 * @param bool $autoIncrement
18 * @return $this
19 */
20 public function autoIncrement($autoIncrement = true);
21
22 /**
23 * Returns `true` if the values of the database table column are auto-increment.
24 *
25 * @return bool
26 */
27 public function isAutoIncremented();
28}